mirror of
https://github.com/trezor/trezor-wallet
synced 2025-06-03 22:58:48 +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;
|
const { amount } = state;
|
||||||
if (amount.length < 1) {
|
if (amount.length < 1) {
|
||||||
// state.errors.amount = 'Amount is not set';
|
|
||||||
state.errors.amount = l10nMessages.TR_AMOUNT_IS_NOT_SET;
|
state.errors.amount = l10nMessages.TR_AMOUNT_IS_NOT_SET;
|
||||||
} else if (amount.length > 0 && !validators.isNumber(amount)) {
|
} 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;
|
state.errors.amount = l10nMessages.TR_AMOUNT_IS_NOT_A_NUMBER;
|
||||||
} else {
|
} else {
|
||||||
const isToken: boolean = state.currency !== state.networkSymbol;
|
const isToken: boolean = state.currency !== state.networkSymbol;
|
||||||
|
@ -41,18 +41,6 @@ const StyledIcon = styled(Icon)`
|
|||||||
margin-right: 6px;
|
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 {
|
class Group extends PureComponent {
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
|
Loading…
Reference in New Issue
Block a user