Skip to content

Commit

Permalink
my perfect toast burnt because of this one char = 😭
Browse files Browse the repository at this point in the history
  • Loading branch information
lightly-toasted authored Apr 16, 2024
1 parent 9e1767d commit fc8cb2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ loader.load('model.glb', gltf => {
function onEnd() {
const diff = burntAt * 100 - time
if (time < 100) message.textContent = 'hold...';
else if (diff > 0) {
else if (diff >= 0) {
const resultTier = tiers.find(tier => diff >= tier.threshold);
message.style.color = resultTier.color;
message.textContent = `${resultTier.name} (-${diff / 100}s)`;
Expand Down

0 comments on commit fc8cb2e

Please sign in to comment.