pull/539/head
slowbackspace 5 years ago
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…
Cancel
Save