fix cents convertion on exchange panel
This commit is contained in:
@@ -128,10 +128,8 @@ export const ExchangePanel: FC<Props> = ({
|
||||
}
|
||||
|
||||
if (exchangeOption === "BUY") {
|
||||
const [amountCents] = fiatDock.split(".");
|
||||
|
||||
commitCreateBuyCryptoOrderMutation(environment, {
|
||||
amountCents: parseInt(amountCents, 10),
|
||||
amountCents: parseFloat(fiatDock) * 100,
|
||||
currencyId: crypto.node.currency.id,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user