Skip to content

Commit

Permalink
Fix typo thanks @michmela44 for raising it
Browse files Browse the repository at this point in the history
  • Loading branch information
luc-github committed Jan 18, 2024
1 parent 958d468 commit c7e3548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tabs/interface/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const InterfaceTab = () => {
if (typeof fieldData.step!=="undefined") {
//hack to avoid float precision issue
const mult=(1/fieldData.step).toFixed(0)
const valueMult = Math.round(fieldData * mult )
const valueMult = Math.round(fieldData.value * mult )
const stepMult = Math.round(fieldData.step* mult)

if ((valueMult % stepMult ) != 0) {
Expand Down

0 comments on commit c7e3548

Please sign in to comment.