fixes rounding issue
parent
29d25f8afe
commit
cfc5bc15b1
|
|
@ -4,7 +4,7 @@ function currency(st) {
|
|||
// internally the price is always given in Silver
|
||||
// so we need to inflate the value of price by 100 to be able to divide beginning from Heller
|
||||
|
||||
const baseValue = st * 100
|
||||
const baseValue = Math.round(st * 100)
|
||||
|
||||
// then we can regex over it
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue