diff options
Diffstat (limited to 'ui/app/conversion-util.js')
-rw-r--r-- | ui/app/conversion-util.js | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/ui/app/conversion-util.js b/ui/app/conversion-util.js index 3a9e9ad0f..1ef276a39 100644 --- a/ui/app/conversion-util.js +++ b/ui/app/conversion-util.js @@ -157,14 +157,11 @@ const multiplyCurrencies = (a, b, options = {}) => { } const conversionGreaterThan = ( - { value, fromNumericBase }, - { value: compareToValue, fromNumericBase: compareToBase }, + { ...firstProps }, + { ...secondProps }, ) => { - const firstValue = converter({ value, fromNumericBase }) - const secondValue = converter({ - value: compareToValue, - fromNumericBase: compareToBase, - }) + const firstValue = converter({ ...firstProps }) + const secondValue = converter({ ...secondProps }) return firstValue.gt(secondValue) } |