mirror of
https://github.com/trezor/trezor-wallet
synced 2025-03-20 18:16:10 +00:00
cleanup
This commit is contained in:
parent
adce529d5a
commit
f01c6f735d
@ -240,10 +240,8 @@ export const amountValidation = ($state: State): PayloadAction<State> => (
|
||||
|
||||
const { amount } = state;
|
||||
if (amount.length < 1) {
|
||||
// state.errors.amount = 'Amount is not set';
|
||||
state.errors.amount = l10nMessages.TR_AMOUNT_IS_NOT_SET;
|
||||
} else if (amount.length > 0 && !validators.isNumber(amount)) {
|
||||
// state.errors.amount = 'Amount is not a number';
|
||||
state.errors.amount = l10nMessages.TR_AMOUNT_IS_NOT_A_NUMBER;
|
||||
} else {
|
||||
const isToken: boolean = state.currency !== state.networkSymbol;
|
||||
|
@ -41,18 +41,6 @@ const StyledIcon = styled(Icon)`
|
||||
margin-right: 6px;
|
||||
`;
|
||||
|
||||
// const getLocalizedMessage = msg => {
|
||||
// if (
|
||||
// typeof msg === 'object' &&
|
||||
// msg.hasOwnProperty('id') &&
|
||||
// msg.hasOwnProperty('defaultMessage')
|
||||
// ) {
|
||||
// //messageDescriptor
|
||||
// return <FormattedMessage {...msg} />;
|
||||
// }
|
||||
// return msg;
|
||||
// };
|
||||
|
||||
class Group extends PureComponent {
|
||||
constructor() {
|
||||
super();
|
||||
|
Loading…
Reference in New Issue
Block a user