Skip to content

Commit

Permalink
SwitchAccountButton: Remove unused prop accounts.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackrzhang committed Nov 21, 2018
1 parent 9fa95a9 commit b21e239
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/account-info/SwitchAccountButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { StyleSheet } from 'react-native';

import type { Auth, Dispatch, GlobalState } from '../types';
import { ZulipButton } from '../common';
import { getAuth, getAccounts, getPushToken } from '../selectors';
import { getAuth, getPushToken } from '../selectors';
import { unregisterPush } from '../api';
import { logErrorRemotely } from '../utils/logging';
import { deleteTokenPush, navigateToAccountPicker } from '../actions';
Expand Down Expand Up @@ -54,6 +54,5 @@ class SwitchAccountButton extends PureComponent<Props> {

export default connect((state: GlobalState) => ({
auth: getAuth(state),
accounts: getAccounts(state),
pushToken: getPushToken(state),
}))(SwitchAccountButton);

0 comments on commit b21e239

Please sign in to comment.