Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
bokkypoobah committed Dec 23, 2023
1 parent b9e2e16 commit 0382418
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1355,11 +1355,12 @@ <h5 class="mt-3">Troubleshooting</h5>
addressDescription(address) {
const accounts = this.accounts[this.chainId] || {};
if (address in accounts) {
result = "type=" + accounts[address].type + "; customType=" + (accounts[address].customType || null)+ "; symbol=" + accounts[address].symbol + "; name=" + accounts[address].name + "; customName=" + (accounts[address].customName || null);
if (accounts[address].decimals) {
result = result + "; decimals=" + accounts[address].decimals + "; customDecimals=" + (accounts[address].customDecimals || null);
result = "address=" + address;
for (let key of ['type', 'customType', 'symbol', 'name', 'customName', 'decimals', 'customDecimals', 'source']) {
if (key in accounts[address] && accounts[address][key]) {
result = result + "; " + key + "=" + accounts[address][key];
}
}
result = result + "; source=" + accounts[address].source + "; address=" + address;
} else {
result = address;
}
Expand Down

0 comments on commit 0382418

Please sign in to comment.