From c90d11dcc358a2891f23f131c5ed7c5c2752e4a2 Mon Sep 17 00:00:00 2001
From: BokkyPooBah <bokky.poobah@bokconsulting.com.au>
Date: Sat, 17 Aug 2024 16:39:38 +1000
Subject: [PATCH] wip

---
 docs/index.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/index.html b/docs/index.html
index 3b2cade..e46e67c 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -145,14 +145,14 @@ <h6 class="mt-4">Troubleshooting</h6>
                   <div class="d-flex flex-wrap m-0 p-0">
                     <div class="mt-0 pr-0" style="width: 25.0rem;">
                       <b-form-group :state="!settings.contract || validAddress(settings.contract)" :invalid-feedback="'Invalid address'" class="m-0 p-0">
-                        <b-form-input type="text" size="sm" id="explorer-contract" v-model="settings.contract" @change="saveSettings" placeholder="Enter token contract address, or select from dropdown"></b-form-input>
+                        <b-form-input type="text" size="sm" id="explorer-contract" v-model="settings.contract" @change="saveSettings(); loadData(settings.contract);" placeholder="Enter token contract address, or select from dropdown"></b-form-input>
                       </b-form-group>
                     </div>
                     <div class="mt-0 pr-0">
                       <b-dropdown size="sm" id="dropdown-left" text="" variant="link" v-b-popover.hover.ds500="'Some sample token contracts'" class="m-0 ml-1 p-0">
                         <b-dropdown-item v-if="sampleContracts('all').length == 0" disabled>No sample contracts on this network</b-dropdown-item>
                         <div v-for="(item, index) of sampleContracts('all')" v-bind:key="index">
-                          <b-dropdown-item @click="settings.contract = item.contract; saveSettings();">{{ index }}. {{ 'ERC-' + item.type }} {{ item.contract.substring(0, 8) + '...' + item.contract.slice(-6) + ' ' + item.name }}</b-dropdown-item>
+                          <b-dropdown-item @click="settings.contract = item.contract; saveSettings(); loadData(settings.contract);">{{ index }}. {{ 'ERC-' + item.type }} {{ item.contract.substring(0, 8) + '...' + item.contract.slice(-6) + ' ' + item.name }}</b-dropdown-item>
                         </div>
                       </b-dropdown>
                     </div>