From 616a2eaca4060a67cf145bc0485d2b914e6078f7 Mon Sep 17 00:00:00 2001 From: Daniel Gonzalez Date: Wed, 18 Nov 2020 21:39:56 -0400 Subject: [PATCH] fixed bcha price display --- src/components/admin-lte/configure/servers.js | 2 +- src/components/admin-lte/index.js | 2 +- src/components/admin-lte/wallet/import.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/admin-lte/configure/servers.js b/src/components/admin-lte/configure/servers.js index b0b4168..f6098e1 100644 --- a/src/components/admin-lte/configure/servers.js +++ b/src/components/admin-lte/configure/servers.js @@ -295,7 +295,7 @@ class Servers extends React.Component { let currentRate if (bchjs.restURL.includes('abc.fullstack')) { - currentRate = await bchjs.Price.getBchaUsd() + currentRate = await bchjs.Price.getBchaUsd() * 100 } else { // BCHN price. currentRate = (await bchjs.Price.getUsd()) * 100 diff --git a/src/components/admin-lte/index.js b/src/components/admin-lte/index.js index 6d60b08..be4437f 100644 --- a/src/components/admin-lte/index.js +++ b/src/components/admin-lte/index.js @@ -136,7 +136,7 @@ class AdminLTEPage extends React.Component { let currentRate if (bchjs.restURL.includes('abc.fullstack')) { - currentRate = await bchjs.Price.getBchaUsd() + currentRate = await bchjs.Price.getBchaUsd() * 100 } else { // BCHN price. currentRate = (await bchjs.Price.getUsd()) * 100 diff --git a/src/components/admin-lte/wallet/import.js b/src/components/admin-lte/wallet/import.js index 1c9e8fe..cbb3ecd 100644 --- a/src/components/admin-lte/wallet/import.js +++ b/src/components/admin-lte/wallet/import.js @@ -151,7 +151,7 @@ class ImportWallet extends React.Component { let currentRate if (bchjs.restURL.includes('abc.fullstack')) { - currentRate = await bchjs.Price.getBchaUsd() + currentRate = await bchjs.Price.getBchaUsd() * 100 } else { // BCHN price. currentRate = (await bchjs.Price.getUsd()) * 100