aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/amounts.ts8
-rw-r--r--src/webex/pages/return-coins.tsx2
2 files changed, 1 insertions, 9 deletions
diff --git a/src/amounts.ts b/src/amounts.ts
index 280cd636c..1aefe07e1 100644
--- a/src/amounts.ts
+++ b/src/amounts.ts
@@ -265,14 +265,6 @@ export function parseOrThrow(s: string): AmountJson {
/**
- * Convert the amount to a float.
- */
-export function toFloat(a: AmountJson): number {
- return a.value + (a.fraction / fractionalBase);
-}
-
-
-/**
* Convert a float to a Taler amount.
* Loss of precision possible.
*/
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,
};