Skip to content

Commit

Permalink
chore(llm): use maxLength instead of Array.slice on Algorand
Browse files Browse the repository at this point in the history
  • Loading branch information
thesan committed Dec 5, 2024
1 parent a0b7ba6 commit 99476d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { GenericMemoTagInput } from "LLM/features/MemoTag/components/GenericMemo
export default (props: MemoTagInputProps<AlgorandTransaction>) => (
<GenericMemoTagInput
{...props}
textToValue={text => text.slice(0, ALGORAND_MAX_MEMO_SIZE)}
maxLength={ALGORAND_MAX_MEMO_SIZE}
valueToTxPatch={value => tx => ({ ...tx, memo: value || undefined })}
/>
);

0 comments on commit 99476d0

Please sign in to comment.