From 8098579ce2419fbdc73223ab0442d0842b6f5d70 Mon Sep 17 00:00:00 2001 From: tuliomir Date: Thu, 1 Feb 2024 11:42:24 -0300 Subject: [PATCH] refactor: removes unused code with a comment --- src/screens/Wallet.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/screens/Wallet.js b/src/screens/Wallet.js index 13b420473..f886666df 100644 --- a/src/screens/Wallet.js +++ b/src/screens/Wallet.js @@ -47,7 +47,9 @@ function Wallet() { const [successMessage, setSuccessMessage] = useState(''); /* shouldShowAdministrativeTab {boolean} If we should display the Administrative Tools tab */ const [shouldShowAdministrativeTab, setShouldShowAdministrativeTab] = useState(false); - const [errorMessage, setErrorMessage] = useState(''); // TODO: Metadata token error are being suppressed as of now + // XXX: There is an important `errorMessage` state that was not being set in the previous version + // It should be set for both the tokenMetadata error handling ( that are currently ignored ) + // and the TokenGeneralInfo child component in a future moment const [totalSupply, setTotalSupply] = useState(null); const [canMint, setCanMint] = useState(false); const [canMelt, setCanMelt] = useState(false); @@ -401,7 +403,6 @@ function Wallet() {