From 8fb32ec29752b5ac884354e5c43cf43c0305fb02 Mon Sep 17 00:00:00 2001 From: Theophile Sandoz Date: Thu, 5 Dec 2024 17:02:47 +0100 Subject: [PATCH] fix(llm): use React Native inputs `maxLength` instead of custom functions --- apps/ledger-live-mobile/src/families/cardano/MemoTagInput.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/ledger-live-mobile/src/families/cardano/MemoTagInput.tsx b/apps/ledger-live-mobile/src/families/cardano/MemoTagInput.tsx index cc1b733fc2ce..d1f545b8b170 100644 --- a/apps/ledger-live-mobile/src/families/cardano/MemoTagInput.tsx +++ b/apps/ledger-live-mobile/src/families/cardano/MemoTagInput.tsx @@ -3,12 +3,11 @@ import React from "react"; import type { Transaction as CardanoTransaction } from "@ledgerhq/live-common/families/cardano/types"; import type { MemoTagInputProps } from "LLM/features/MemoTag/types"; import { GenericMemoTagInput } from "LLM/features/MemoTag/components/GenericMemoTagInput"; -import { truncateUtf8 } from "LLM/utils/truncateUtf8"; export default (props: MemoTagInputProps) => ( truncateUtf8(text, MAX_MEMO_LENGTH)} + maxLength={MAX_MEMO_LENGTH} valueToTxPatch={value => tx => ({ ...tx, memo: value || undefined })} /> );