Skip to content

Commit

Permalink
refactor: removes unused code with a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tuliomir committed Feb 1, 2024
1 parent f85bf7c commit 8098579
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/screens/Wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ function Wallet() {
const [successMessage, setSuccessMessage] = useState('');

Check warning on line 47 in src/screens/Wallet.js

View check run for this annotation

Codecov / codecov/patch

src/screens/Wallet.js#L47

Added line #L47 was not covered by tests
/* shouldShowAdministrativeTab {boolean} If we should display the Administrative Tools tab */
const [shouldShowAdministrativeTab, setShouldShowAdministrativeTab] = useState(false);

Check warning on line 49 in src/screens/Wallet.js

View check run for this annotation

Codecov / codecov/patch

src/screens/Wallet.js#L49

Added line #L49 was not covered by tests
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);
Expand Down Expand Up @@ -401,7 +403,6 @@ function Wallet() {
<TokenGeneralInfo
token={token}
showConfigString={true}
errorMessage={errorMessage}
showAlwaysShowTokenCheckbox={true}
totalSupply={totalSupply}
canMint={canMint}
Expand Down

0 comments on commit 8098579

Please sign in to comment.