Skip to content

Commit

Permalink
style(lint): fix references
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-haynes committed Mar 8, 2022
1 parent c2ed487 commit 5297768
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
12 changes: 0 additions & 12 deletions packages/frontend/src/redux/reducers/account/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ import reduceReducers from 'reduce-reducers';
import { handleActions } from 'redux-actions';

import {
requestCode,
getAccessKeys,
clearCode,
promptTwoFactor,
refreshUrl,
resetAccounts,
checkCanEnableTwoFactor,
get2faMethod,
getLedgerKey,
Expand Down Expand Up @@ -38,12 +36,6 @@ const initialState = {
};

const recoverCodeReducer = handleActions({
[requestCode]: (state, { error, ready }) => {
if (ready && !error) {
return { ...state, sentMessage: true };
}
return state;
},
[clearCode]: (state, { error, ready }) => {
return { ...state, sentMessage: false };
}
Expand Down Expand Up @@ -126,10 +118,6 @@ const account = handleActions({
loader: false
};
},
[resetAccounts]: (state) => ({
...state,
loginResetAccounts: true
}),
[staking.updateAccount]: (state, { ready, error, payload }) =>
(!ready || error)
? state
Expand Down
3 changes: 1 addition & 2 deletions packages/frontend/src/routes/LoginWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ import { useSelector } from 'react-redux';
import ConfirmLoginWrapper from '../components/login/v2/ConfirmLoginWrapper';
import InvalidContractId from '../components/login/v2/InvalidContractId';
import SelectAccountLoginWrapper from '../components/login/v2/SelectAccountLoginWrapper';
import { EXPLORER_URL } from '../config';
import { EXPLORER_URL, LOCKUP_ACCOUNT_ID_SUFFIX } from '../config';
import { Mixpanel } from '../mixpanel/index';
import {
selectAccountLocalStorageAccountId
} from '../redux/slices/account';
import { isUrlNotJavascriptProtocol } from '../utils/helper-api';
import { LOCKUP_ACCOUNT_ID_SUFFIX } from '../utils/wallet';

export const LOGIN_ACCESS_TYPES = {
FULL_ACCESS: 'fullAccess',
Expand Down

0 comments on commit 5297768

Please sign in to comment.