diff --git a/src/app/pages/AccountPage/Features/SendTransaction/__tests__/index.test.tsx b/src/app/pages/AccountPage/Features/SendTransaction/__tests__/index.test.tsx index d3e1112ec4..d67b493ec9 100644 --- a/src/app/pages/AccountPage/Features/SendTransaction/__tests__/index.test.tsx +++ b/src/app/pages/AccountPage/Features/SendTransaction/__tests__/index.test.tsx @@ -25,7 +25,7 @@ describe('', () => { renderComponent(store) await userEvent.type(screen.getByPlaceholderText('account.sendTransaction.enterAddress'), 'walletAddress') - await userEvent.type(screen.getByPlaceholderText('0'), '10') + await userEvent.type(screen.getByPlaceholderText('account.sendTransaction.enterAmount'), '10') await userEvent.click(screen.getByRole('button')) expect(spy).toHaveBeenCalledWith({ diff --git a/src/app/pages/AccountPage/Features/SendTransaction/index.tsx b/src/app/pages/AccountPage/Features/SendTransaction/index.tsx index f5256fee63..35e3d841e8 100644 --- a/src/app/pages/AccountPage/Features/SendTransaction/index.tsx +++ b/src/app/pages/AccountPage/Features/SendTransaction/index.tsx @@ -25,7 +25,7 @@ export function SendTransaction(props: SendTransactionProps) { const { error, success } = useSelector(selectTransaction) const validators = useSelector(selectValidators) const [recipient, setRecipient] = useState('') - const [amount, setAmount] = useState('') + const [amount, setAmount] = useState('0') const sendTransaction = () => dispatch( transactionActions.sendTransaction({ @@ -90,7 +90,7 @@ export function SendTransaction(props: SendTransactionProps) { should match snapshot 1`] = ` id="amount-id" min="0" name="amount" - placeholder="0" + placeholder="Enter an amount" required="" step="any" type="number" - value="" + value="0" /> diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index c7af45d1d7..43b8b5ddb8 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -24,6 +24,7 @@ "title": "Are you sure you want to continue?" }, "enterAddress": "Enter an address", + "enterAmount": "Enter an amount", "recipient": "Recipient", "send": "Send", "success": "Transaction successfully sent. The transaction might take up to a minute to appear on your account."