1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-16 05:19:12 +00:00

same send button text for xrp and eth

This commit is contained in:
slowbackspace 2019-02-19 19:30:39 +01:00
parent 53c7c20a29
commit 2927f5ebaf

View File

@ -248,7 +248,10 @@ const AccountSend = (props: Props) => {
}
let isSendButtonDisabled: boolean = Object.keys(errors).length > 0 || total === '0' || amount.length === 0 || address.length === 0 || sending;
let sendButtonText: string = ` ${total} ${network.symbol}`;
let sendButtonText: string = 'Send';
if (total !== '0') {
sendButtonText = `${sendButtonText} ${total} ${network.symbol}`;
}
if (!device.connected) {
sendButtonText = 'Device is not connected';