From 8bdd32b7091d3cc97b22a5564cb6bda00b835565 Mon Sep 17 00:00:00 2001 From: Pedro Ferreira Date: Fri, 12 Apr 2024 17:35:33 -0300 Subject: [PATCH] fix: stop showing nano loading for non nano transactions --- src/components/tx/TxData.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/tx/TxData.js b/src/components/tx/TxData.js index 6d1b293..2da1f44 100644 --- a/src/components/tx/TxData.js +++ b/src/components/tx/TxData.js @@ -69,7 +69,7 @@ class TxData extends React.Component { } ], ncDeserializer: null, - ncLoading: true, + ncLoading: false, }; // Array of token uid that was already found to show the symbol @@ -91,12 +91,13 @@ class TxData extends React.Component { } handleNanoContractFetch = async () => { - this.setState({ ncLoading: true }); if (this.props.transaction.version !== hathorLib.constants.NANO_CONTRACTS_VERSION) { this.setState({ ncLoading: false }); return; } + this.setState({ ncLoading: true }); + const network = hathorLib.config.getNetwork(); const ncData = this.props.transaction; const deserializer = new hathorLib.NanoContractTransactionParser(ncData.nc_blueprint_id, ncData.nc_method, ncData.nc_pubkey, ncData.nc_args);