From 5a5dcb15c0d72101f43262f69237579554be8378 Mon Sep 17 00:00:00 2001 From: Liam Cardenas Date: Fri, 29 Dec 2017 16:23:46 -0800 Subject: [PATCH] Fixed error caused by using deprecated selector --- src/renderer/modal/modalCreditIntro/index.js | 22 ++++++-------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/src/renderer/modal/modalCreditIntro/index.js b/src/renderer/modal/modalCreditIntro/index.js index a6eb79720..247d2ff5d 100644 --- a/src/renderer/modal/modalCreditIntro/index.js +++ b/src/renderer/modal/modalCreditIntro/index.js @@ -1,28 +1,18 @@ -import React from 'react'; import { connect } from 'react-redux'; import { doCloseModal } from 'redux/actions/app'; import { doNavigate } from 'redux/actions/navigation'; import { doSetClientSetting } from 'redux/actions/settings'; import { selectUserIsRewardApproved } from 'redux/selectors/user'; import { selectBalance } from 'redux/selectors/wallet'; -import { - makeSelectHasClaimedReward, - makeSelectRewardByType, - selectUnclaimedRewardValue, -} from 'redux/selectors/rewards'; +import { selectUnclaimedRewardValue } from 'redux/selectors/rewards'; import * as settings from 'constants/settings'; import ModalCreditIntro from './view'; -const select = (state, props) => { - const selectHasClaimed = makeSelectHasClaimedReward(), - selectReward = makeSelectRewardByType(); - - return { - currentBalance: selectBalance(state), - isRewardApproved: selectUserIsRewardApproved(state), - totalRewardValue: selectUnclaimedRewardValue(state), - }; -}; +const select = state => ({ + currentBalance: selectBalance(state), + isRewardApproved: selectUserIsRewardApproved(state), + totalRewardValue: selectUnclaimedRewardValue(state), +}); const perform = dispatch => () => ({ addBalance: () => {