Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ const NewOrgForm = ({ onPaymentMethodReset, setupIntent, onPlanSelected }: NewOr
}
},
onError: (data) => {
toast.error(`Failed to create organization: ${data.message}`)
toast.error(data.message, { duration: 10_000 })
resetPaymentMethod()
setNewOrgLoading(false)
},
Expand All @@ -209,7 +209,9 @@ const NewOrgForm = ({ onPaymentMethodReset, setupIntent, onPlanSelected }: NewOr
})
} else {
// If the payment intent is not successful, we reset the payment method and show an error
toast.error(`Could not confirm payment. Please try again or use a different card.`)
toast.error(`Could not confirm payment. Please try again or use a different card.`, {
duration: 10_000,
})
resetPaymentMethod()
setNewOrgLoading(false)
}
Expand Down Expand Up @@ -645,7 +647,7 @@ const NewOrgForm = ({ onPaymentMethodReset, setupIntent, onPlanSelected }: NewOr
onLoadingChange={(loading) => setPaymentConfirmationLoading(loading)}
paymentMethodId={paymentMethod.id}
onError={(err) => {
toast.error(`Failed to confirm payment: ${err.message}`)
toast.error(err.message, { duration: 10_000 })
setNewOrgLoading(false)
resetPaymentMethod()
}}
Expand Down
Loading