Skip to content

Commit

Permalink
++Refactor use-armies and clean battles (#2640)
Browse files Browse the repository at this point in the history
* clean battles

* refactor use-armies

* refactor use bank
  • Loading branch information
aymericdelab authored Jan 14, 2025
1 parent 8871810 commit d2282fe
Show file tree
Hide file tree
Showing 34 changed files with 476 additions and 1,114 deletions.
2 changes: 0 additions & 2 deletions client/apps/game/src/hooks/context/dojo-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ const DojoContextProvider = ({
}
} else {
if (controllerAccount) {
// console.log("Setting account from controllerAccount:", controllerAccount);
useAccountStore.getState().setAccount(controllerAccount);

const addressName = runQuery([
Expand All @@ -239,7 +238,6 @@ const DojoContextProvider = ({

setAccountsInitialized(true);
} else {
// console.log("ControllerAccount is null in production or not connected.");
setTimeout(() => {
setRetries((prevRetries) => {
if (prevRetries < 10) {
Expand Down
54 changes: 0 additions & 54 deletions client/apps/game/src/hooks/helpers/battles/__test__/__mock__.tsx

This file was deleted.

This file was deleted.

112 changes: 0 additions & 112 deletions client/apps/game/src/hooks/helpers/battles/use-battles.tsx

This file was deleted.

Loading

0 comments on commit d2282fe

Please sign in to comment.