Skip to content

Commit

Permalink
fix last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
levity committed Jun 27, 2019
1 parent 5b5309d commit 8433b43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/providers/MakerProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ function MakerProvider({ children, network, testchainId, backendEnv }) {
backendEnv
}).then(maker => {
setMaker(maker);
if (maker.currentAccount()) initAccount(maker.currentAccount());
if (maker.service('accounts').hasAccount())
initAccount(maker.currentAccount());

maker.on('accounts/CHANGE', eventObj => {
const { account } = eventObj.payload;
Expand Down

0 comments on commit 8433b43

Please sign in to comment.