Skip to content

Commit

Permalink
Dispatch refreshAccountExternal for external accountId only (#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinbodnar committed May 18, 2020
1 parent f4c319d commit b82a05e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hooks/allAccounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ const initialAccountState = { __status: LOADING }

export function useAccount(accountId) {
const account = useSelector(state =>
state.allAccounts[accountId] || initialAccountState
state.account.accountId === accountId
? state.account
: state.allAccounts[accountId] || initialAccountState
)
const dispatch = useDispatch()

Expand Down

0 comments on commit b82a05e

Please sign in to comment.