Skip to content

Commit

Permalink
fix: casper Memo tag error handeling FF On (#8591)
Browse files Browse the repository at this point in the history
  • Loading branch information
themooneer authored Dec 5, 2024
1 parent 5c497ba commit 5afab00
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/sour-kings-sneeze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ledger-live-desktop": minor
---

Handler max value error management on casper coin in Memo Tag Flow (legacy & new). In other words, when the max length is bypassed, it will throws a Sender exception related to maxTransferId.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const MemoField = ({ onChange, account, transaction, status, autoFocus }: MemoTa
return (
<MemoTagField
warning={status.warnings.transaction}
error={status.errors.transaction}
error={status.errors.transaction || status.errors.sender}
value={transaction.transferId ?? ""}
placeholder={t("families.casper.transferIdPlaceholder")}
label={t("families.casper.transferId")}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export const getFields = (account: Account, isLldMemoTagEnabled?: boolean): stri
switch (account.currency.family) {
case "internet_computer":
return ["transaction"];
case "casper":
return ["sender"];
default:
return module?.fields || [];
}
Expand Down

0 comments on commit 5afab00

Please sign in to comment.