Skip to content

Commit

Permalink
⚡ call loadGameData as soon as possible
Browse files Browse the repository at this point in the history
  • Loading branch information
xaler5 committed Nov 14, 2024
1 parent 94efc15 commit 8d482ac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion client/src/containers/Level.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class Level extends React.Component {
}

componentDidMount() {
this.props.loadGameData();
this.props.activateLevel(this.props.params.address);
document.addEventListener("mousedown", this.handleClickOutside);
}
Expand Down
1 change: 1 addition & 0 deletions client/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ if (!window.ethereum) {
} else {
const accountConnectionWindow = document.querySelectorAll('.account-connection-window-bg');
if (accountConnectionWindow[0]) accountConnectionWindow[0].style.display = 'block';
store.dispatch(actions.loadGamedata());
}
});
}
Expand Down

0 comments on commit 8d482ac

Please sign in to comment.