aboutsummaryrefslogtreecommitdiff
path: root/src/webex/pages/return-coins.tsx
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-07-05 00:21:11 +0200
committerFlorian Dold <florian.dold@gmail.com>2018-07-05 00:21:23 +0200
commita4edc3b17f27de5866e11d04a1fc9bbd4d657867 (patch)
treedb4764ad5856ba5852e22765637c7d1c32976eca /src/webex/pages/return-coins.tsx
parente9d280eaea376d80bb6fd9895b9f19c6ad264b4c (diff)
downloadwallet-core-a4edc3b17f27de5866e11d04a1fc9bbd4d657867.tar.xz
remove wrong toFloat function
Amounts should never be converted to floats, the one use of the function was bogus.
Diffstat (limited to 'src/webex/pages/return-coins.tsx')
-rw-r--r--src/webex/pages/return-coins.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webex/pages/return-coins.tsx b/src/webex/pages/return-coins.tsx
index ff998d869..278f8af9d 100644
--- a/src/webex/pages/return-coins.tsx
+++ b/src/webex/pages/return-coins.tsx
@@ -70,7 +70,7 @@ class ReturnSelectionItem extends React.Component<ReturnSelectionItemProps, Retu
});
this.state = {
currency: props.balance.byExchange[props.exchangeUrl].available.currency,
- selectedValue: Amounts.toFloat(props.balance.byExchange[props.exchangeUrl].available).toString(),
+ selectedValue: Amounts.toString(props.balance.byExchange[props.exchangeUrl].available),
selectedWire: "",
supportedWires,
};