diff --git a/libs/accounts/src/lib/transfer-form.spec.tsx b/libs/accounts/src/lib/transfer-form.spec.tsx index 05a99d10b..25405db56 100644 --- a/libs/accounts/src/lib/transfer-form.spec.tsx +++ b/libs/accounts/src/lib/transfer-form.spec.tsx @@ -165,6 +165,7 @@ describe('TransferFee', () => { const props = { amount: '200', feeFactor: '0.001', + fee: '0.2', }; it('calculates and renders the transfer fee', () => { render(); @@ -174,6 +175,9 @@ describe('TransferFee', () => { .toFixed(); const total = new BigNumber(props.amount).plus(expected).toFixed(); expect(screen.getByTestId('transfer-fee')).toHaveTextContent(expected); + expect(screen.getByTestId('transfer-amount')).toHaveTextContent( + props.amount + ); expect(screen.getByTestId('total-transfer-fee')).toHaveTextContent(total); }); }); diff --git a/libs/accounts/src/lib/transfer-form.tsx b/libs/accounts/src/lib/transfer-form.tsx index 827b3c19d..78e4f4fc4 100644 --- a/libs/accounts/src/lib/transfer-form.tsx +++ b/libs/accounts/src/lib/transfer-form.tsx @@ -305,7 +305,7 @@ export const TransferFee = ({
{amount}