Skip to content

Commit

Permalink
man.
Browse files Browse the repository at this point in the history
  • Loading branch information
KapiWilq committed Dec 5, 2024
1 parent 90017c9 commit 5807ba4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ function prepareUnstableRateDisplay(unstableRateStyle) {

// You cannot edit existing CountUps' properties, therefore redeclare it.
if (cache.unstableRateStyle === 'Show only the value')
new CountUp('unstableRate', cache.unstableRate, 0, 2, .5, { useEasing: true, useGrouping: true, separator: ' ', decimal: '.' });
unstableRateCountUp = new CountUp('unstableRate', cache.unstableRate, 0, 2, .5, { useEasing: true, useGrouping: true, separator: ' ', decimal: '.' });
else if (cache.unstableRateStyle === 'Show both the prefix and the value')
new CountUp('unstableRate', cache.unstableRate, 0, 2, .5, { useEasing: true, useGrouping: true, separator: ' ', decimal: '.', prefix: 'UR: ' });
unstableRateCountUp = new CountUp('unstableRate', cache.unstableRate, 0, 2, .5, { useEasing: true, useGrouping: true, separator: ' ', decimal: '.', prefix: 'UR: ' });

// Show either during gameplay or when going to the results screen from gameplay (and when user wants to see it).
document.querySelector('#unstableRate').style.opacity = Number((cache.currentState === 'play' || (cache.currentState === 'resultScreen' && cache.previousState === 'play')) && cache.unstableRateStyle !== 'Show nothing');
Expand Down

0 comments on commit 5807ba4

Please sign in to comment.