From e5d708bb6cf4e9e6a6685eb110dd3c6e524301ee Mon Sep 17 00:00:00 2001 From: Daniel Gonzalez Date: Fri, 30 Apr 2021 12:59:22 -0400 Subject: [PATCH] feat(auto fill): Restricted auto-fill in wallet-import text box --- src/components/admin-lte/wallet/import.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/components/admin-lte/wallet/import.js b/src/components/admin-lte/wallet/import.js index cbb3ecd..d06bfdd 100644 --- a/src/components/admin-lte/wallet/import.js +++ b/src/components/admin-lte/wallet/import.js @@ -4,10 +4,7 @@ import { Row, Col, Box, Button, Inputs } from 'adminlte-2-react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' // import BchWallet from 'minimal-slp-wallet' -const BchWallet = - typeof window !== 'undefined' - ? window.SlpWallet - : null +const BchWallet = typeof window !== 'undefined' ? window.SlpWallet : null const { Text } = Inputs @@ -50,7 +47,7 @@ class ImportWallet extends React.Component { -
+
-
+
@@ -151,7 +148,7 @@ class ImportWallet extends React.Component { let currentRate if (bchjs.restURL.includes('abc.fullstack')) { - currentRate = await bchjs.Price.getBchaUsd() * 100 + currentRate = (await bchjs.Price.getBchaUsd()) * 100 } else { // BCHN price. currentRate = (await bchjs.Price.getUsd()) * 100