Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
novvember committed Jul 1, 2024
1 parent d581060 commit d177d55
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nothing-sector/watchface/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ WatchFace({
const update = () => {
const { current, target } = hmSensor.createSensor(hmSensor.id.STEP);

let ratio = current / target;
ratio = Math.min(ratio, 1);

const ratio = Math.min(current / target, 1);
const level = Math.round(ratio * 6);

if (prevValue === level) {
Expand Down

0 comments on commit d177d55

Please sign in to comment.