From 99476d0f248023232bb7a7c130eab3edc25e9b14 Mon Sep 17 00:00:00 2001 From: Theophile Sandoz Date: Thu, 5 Dec 2024 19:48:38 +0100 Subject: [PATCH] chore(llm): use `maxLength` instead of `Array.slice` on Algorand --- apps/ledger-live-mobile/src/families/algorand/MemoTagInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ledger-live-mobile/src/families/algorand/MemoTagInput.tsx b/apps/ledger-live-mobile/src/families/algorand/MemoTagInput.tsx index c21f44e967c5..ce2356498c2c 100644 --- a/apps/ledger-live-mobile/src/families/algorand/MemoTagInput.tsx +++ b/apps/ledger-live-mobile/src/families/algorand/MemoTagInput.tsx @@ -8,7 +8,7 @@ import { GenericMemoTagInput } from "LLM/features/MemoTag/components/GenericMemo export default (props: MemoTagInputProps) => ( text.slice(0, ALGORAND_MAX_MEMO_SIZE)} + maxLength={ALGORAND_MAX_MEMO_SIZE} valueToTxPatch={value => tx => ({ ...tx, memo: value || undefined })} /> );