diff --git a/src/views/Wallet/views/Account/Send/ethereum/index.js b/src/views/Wallet/views/Account/Send/ethereum/index.js index 7b69babd..73fd4000 100644 --- a/src/views/Wallet/views/Account/Send/ethereum/index.js +++ b/src/views/Wallet/views/Account/Send/ethereum/index.js @@ -1,6 +1,6 @@ /* @flow */ -import React from 'react'; +import React, { useState } from 'react'; import BigNumber from 'bignumber.js'; import styled, { css } from 'styled-components'; import { Select, Button, Input, Link, Icon, P, colors, icons as ICONS } from 'trezor-ui-components'; @@ -285,6 +285,8 @@ const AccountSend = (props: Props) => { onClear, } = props.sendFormActions; + const [touched, setTouched] = useState(false); + if (!device || !account || !discovery || !network || !shouldRender) { const { loader, exceptionPage } = props.selectedAccount; return ; @@ -472,14 +474,20 @@ const AccountSend = (props: Props) => { - + { + toggleAdvanced(); + setTouched(true); + }} + > diff --git a/src/views/Wallet/views/Account/Send/ripple/index.js b/src/views/Wallet/views/Account/Send/ripple/index.js index de6eb896..d3e144d0 100644 --- a/src/views/Wallet/views/Account/Send/ripple/index.js +++ b/src/views/Wallet/views/Account/Send/ripple/index.js @@ -1,6 +1,6 @@ /* @flow */ -import React from 'react'; +import React, { useState } from 'react'; import styled, { css } from 'styled-components'; import { FormattedMessage } from 'react-intl'; @@ -267,6 +267,8 @@ const AccountSend = (props: Props) => { onClear, } = props.sendFormActions; + const [touched, setTouched] = useState(false); + if (!device || !account || !discovery || !network || !shouldRender) { const { loader, exceptionPage } = props.selectedAccount; return ; @@ -437,14 +439,20 @@ const AccountSend = (props: Props) => { - + { + toggleAdvanced(); + setTouched(true); + }} + >