diff --git a/packages/extension/src/components/pages/SendPayment/PreparePayment/PreparePayment.tsx b/packages/extension/src/components/pages/SendPayment/PreparePayment/PreparePayment.tsx index bdfa27b79..b3f01d501 100644 --- a/packages/extension/src/components/pages/SendPayment/PreparePayment/PreparePayment.tsx +++ b/packages/extension/src/components/pages/SendPayment/PreparePayment/PreparePayment.tsx @@ -36,6 +36,7 @@ import { PageWithNavMenu, PageWithReturn, PageWithSpinner } from '../../../templ const MAX_MEMO_LENGTH = 300; const MAX_DESTINATION_TAG_LENGTH = 10; const INDEX_DEFAULT_NAV = navigation.findIndex((link) => link.pathname === HOME_PATH); +const MAX_ALLOWED_FEES_XRP = 5; export interface PreparePaymentProps { onSendPaymentClick: ({ @@ -317,6 +318,13 @@ export const PreparePayment: FC = ({ onSendPaymentClick }) return; } + if (Number(e.target.value) > MAX_ALLOWED_FEES_XRP) { + setErrorTransactionFee( + `The maximum allowed transaction fee is ${MAX_ALLOWED_FEES_XRP} XRP` + ); + return; + } + setErrorTransactionFee(''); }, [minimumFeeValue]