Skip to content

Commit

Permalink
Revert "fix(multiplayer): don't sync to room when offline due to netw…
Browse files Browse the repository at this point in the history
…ork error"

This reverts commit 4e955f3.
  • Loading branch information
jeremyckahn committed Apr 30, 2024
1 parent f9739bb commit a87eee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Farmhand/Farmhand.js
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ export default class Farmhand extends FarmhandReducers {
}))
}

if (newIsOnline !== prevState.isOnline || room !== prevState.room) {
if (isOnline !== prevState.isOnline || room !== prevState.room) {
this.syncToRoom()

if (!isOnline && typeof heartbeatTimeoutId === 'number') {
Expand Down

0 comments on commit a87eee3

Please sign in to comment.