1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-03-20 18:16:10 +00:00
This commit is contained in:
slowbackspace 2019-05-06 21:02:10 +02:00
parent adce529d5a
commit f01c6f735d
2 changed files with 0 additions and 14 deletions

View File

@ -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;

View File

@ -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();