Skip to content

Commit

Permalink
Remove tx call
Browse files Browse the repository at this point in the history
  • Loading branch information
ClanCo committed Dec 12, 2024
1 parent 3b943aa commit dbf4607
Showing 1 changed file with 8 additions and 19 deletions.
27 changes: 8 additions & 19 deletions client/src/ui/componentsDev/GridDev.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -336,25 +336,14 @@ const GridDev: React.FC<GridProps> = ({
isProcessingRef.current = true;
setIsTxProcessing(true);
playSwipe();
try {
console.log(
"Move TX (row, start col, end col)",
gridHeight - 1 - rowIndex,
startColIndex,
finalColIndex,
);
await move({
account: account as Account,
row_index: gridHeight - 1 - rowIndex,
start_index: Math.trunc(startColIndex),
final_index: Math.trunc(finalColIndex),
});
} catch (error) {
console.error("Erreur lors de l'envoi de la transaction", error);
isProcessingRef.current = false; // Reset the ref
} finally {
isProcessingRef.current = false; // Reset the ref
}

console.log(
"Fake Call : Move TX (row, start col, end col)",
gridHeight - 1 - rowIndex,
startColIndex,
finalColIndex,
);
isProcessingRef.current = false; // Reset the ref
},
// eslint-disable-next-line react-hooks/exhaustive-deps
[account, isMoving, gridHeight, move],
Expand Down

0 comments on commit dbf4607

Please sign in to comment.