feat: improve error handling for withdraw modal (#5054)

* feat: improve error handling for withdraw modal

* fix: add headers to error info

* prepr

---------

Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com>
This commit is contained in:
Calum H.
2026-01-06 00:46:34 +00:00
committed by GitHub
parent 0cf28c6392
commit a6cd4dfc0f
4 changed files with 243 additions and 50 deletions

View File

@@ -980,12 +980,30 @@
"dashboard.withdraw.completion.wallet": {
"message": "Wallet"
},
"dashboard.withdraw.error.account-not-linked.text": {
"message": "Please link your payment account before withdrawing."
},
"dashboard.withdraw.error.account-not-linked.title": {
"message": "Account not linked"
},
"dashboard.withdraw.error.email-verification.text": {
"message": "You must verify your email address before withdrawing funds."
},
"dashboard.withdraw.error.email-verification.title": {
"message": "Email verification required"
},
"dashboard.withdraw.error.generic.text": {
"message": "We were unable to submit your withdrawal request, please check your details or contact support."
"message": "We were unable to submit your withdrawal request, please check your details or contact support.\n{error}"
},
"dashboard.withdraw.error.generic.title": {
"message": "Unable to withdraw"
},
"dashboard.withdraw.error.insufficient-balance.text": {
"message": "You do not have enough funds to make this withdrawal."
},
"dashboard.withdraw.error.insufficient-balance.title": {
"message": "Insufficient balance"
},
"dashboard.withdraw.error.invalid-address.text": {
"message": "The address you provided could not be verified. Please check your address details."
},
@@ -1010,6 +1028,12 @@
"dashboard.withdraw.error.minimum-not-met.title": {
"message": "Amount too low"
},
"dashboard.withdraw.error.paypal-country-mismatch.text": {
"message": "Please use the correct PayPal transfer option for your region (US or International)."
},
"dashboard.withdraw.error.paypal-country-mismatch.title": {
"message": "PayPal region mismatch"
},
"dashboard.withdraw.error.tax-form.text": {
"message": "You must complete a tax form to submit your withdrawal request."
},