aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/conversion-util.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/conversion-util.js')
-rw-r--r--ui/app/conversion-util.js11
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)
}