Skip to content

Commit

Permalink
Merge pull request #9223 from LedgerHQ/feat/LIVE-16993
Browse files Browse the repository at this point in the history
feat: LIVE-16993 updated swap error messages
  • Loading branch information
CremaFR authored Feb 14, 2025
2 parents 15db89b + 42948ff commit 085d29a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .changeset/calm-lamps-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@ledgerhq/hw-app-exchange": minor
"ledger-live-desktop": minor
---

update error message for clarity
4 changes: 2 additions & 2 deletions apps/ledger-live-desktop/static/i18n/en/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -5944,11 +5944,11 @@
},
"WrongDeviceForAccountPayout": {
"title": "Something went wrong",
"description": "This receiving account does not belong to your device. Please change and retry."
"description": "This receiving account does not belong to the device you have connected. Please change and retry"
},
"WrongDeviceForAccountRefund": {
"title": "Something went wrong",
"description": "This receiving account does not belong to your device for the refund. Please change and retry."
"description": "This sending account does not belong to the device you have connected. Please change and retry"
},
"DeviceAppVerifyNotSupported": {
"title": "App update required",
Expand Down
4 changes: 2 additions & 2 deletions libs/ledgerjs/packages/hw-app-exchange/src/ReturnCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ export function getExchangeErrorMessage(errorCode: number, step?: string): strin
return "Wrong transaction id";
case ErrorStatus.INVALID_ADDRESS:
if (step === "CHECK_PAYOUT_ADDRESS")
return "This receiving account does not belong to your device. Please change and retry.";
return "This receiving account does not belong to the device you have connected. Please change and retry";
else if (step === "CHECK_REFUND_ADDRESS")
return "This receiving account does not belong to your device for the refund. Please change and retry.";
return "This sending account does not belong to the device you have connected. Please change and retry";
return "Invalid address";
case ErrorStatus.USER_REFUSED:
return "User refused";
Expand Down

0 comments on commit 085d29a

Please sign in to comment.