From f01c6f735d22ee4f9ed67a2cd1a0bdffada2a53e Mon Sep 17 00:00:00 2001 From: slowbackspace Date: Mon, 6 May 2019 21:02:10 +0200 Subject: [PATCH] cleanup --- src/actions/ethereum/SendFormValidationActions.js | 2 -- .../NotificationsGroups/components/Group/index.js | 12 ------------ 2 files changed, 14 deletions(-) diff --git a/src/actions/ethereum/SendFormValidationActions.js b/src/actions/ethereum/SendFormValidationActions.js index f3509031..33aa0ec6 100644 --- a/src/actions/ethereum/SendFormValidationActions.js +++ b/src/actions/ethereum/SendFormValidationActions.js @@ -240,10 +240,8 @@ export const amountValidation = ($state: State): PayloadAction => ( 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; diff --git a/src/components/notifications/Context/components/Action/components/NotificationsGroups/components/Group/index.js b/src/components/notifications/Context/components/Action/components/NotificationsGroups/components/Group/index.js index 74232118..49490105 100644 --- a/src/components/notifications/Context/components/Action/components/NotificationsGroups/components/Group/index.js +++ b/src/components/notifications/Context/components/Action/components/NotificationsGroups/components/Group/index.js @@ -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 ; -// } -// return msg; -// }; - class Group extends PureComponent { constructor() { super();