turbo-src / chrome-extension

MIT License
2 stars 4 forks source link

changed to Math.floor to always round down vote percentages #77

Closed ramirc5 closed 1 year ago

jex441 commented 1 year ago

Why is 99.9 hard coded in here instead of the variable totalPercent? @ramirc5

if (totalPercent !== null) {
          setVoteTotals(`${Math.floor(99.9)}%`);
        }
ramirc5 commented 1 year ago

Leftover from testing. Fixed to be the proper variable being rounded down.