Skip to content

Commit

Permalink
fix: Show stripe errors
Browse files Browse the repository at this point in the history
  • Loading branch information
acasazza committed May 10, 2022
1 parent b562360 commit bc96cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/utils/getAllErrors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const getAllErrors: GetAllErrors = (params) => {
let text =
v?.title && !v.detail?.includes(v.title)
? `${v.title} - ${v.detail}`
: `${v.detail}`
: `${v?.detail || v.message}`
if (objMsg?.message) text = objMsg?.message
if (field) {
if (v.resource === 'line_items') {
Expand Down

0 comments on commit bc96cd6

Please sign in to comment.