Skip to content

Commit

Permalink
revert: onTick call
Browse files Browse the repository at this point in the history
  • Loading branch information
drikusroor committed Jan 30, 2024
1 parent b1680e7 commit e48ee6e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frontend/src/util/timer.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ export const Timer = ({
lastTime = time;

// tick
if (onTick) {
onTick(time, delta);
}
onTick && onTick(time, delta);
}

lastTimestamp = timestamp;
Expand Down

0 comments on commit e48ee6e

Please sign in to comment.