Skip to content

Commit

Permalink
Fix manually disconnecting smart cube
Browse files Browse the repository at this point in the history
  • Loading branch information
simonkellly committed May 24, 2024
1 parent 422f840 commit 9a08eb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/smartCube.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function handleCubeEvent(event: GanCubeEvent) {
if (event.type == 'MOVE') {
handleMoveEvent(event);
} else if (event.type == 'DISCONNECT') {
connect();
CubeStore.setState(() => ({}) as CubeStoreType);
}
}

Expand Down

0 comments on commit 9a08eb4

Please sign in to comment.