From 6636c099ddef93ac610a2825bed57d17df6a0326 Mon Sep 17 00:00:00 2001 From: Alex Panturu Date: Mon, 20 May 2024 17:08:15 +0300 Subject: [PATCH] explorer: call `reset` method on network change --- explorer/src/lib/components/navbar/Navbar.svelte | 4 ++-- .../containers/statistics-panel/StatisticsPanel.svelte | 4 +++- explorer/src/routes/+page.svelte | 6 ++---- explorer/src/routes/blocks/+page.svelte | 5 +++-- explorer/src/routes/blocks/block/+page.svelte | 10 ++++------ explorer/src/routes/transactions/+page.svelte | 5 +++-- .../src/routes/transactions/transaction/+page.svelte | 6 +++++- 7 files changed, 22 insertions(+), 18 deletions(-) diff --git a/explorer/src/lib/components/navbar/Navbar.svelte b/explorer/src/lib/components/navbar/Navbar.svelte index 32c2969c12..73c2dec8ba 100644 --- a/explorer/src/lib/components/navbar/Navbar.svelte +++ b/explorer/src/lib/components/navbar/Navbar.svelte @@ -49,7 +49,7 @@ /** * @param {Event} e */ - function handleChange(e) { + function handleNetworkChange(e) { // @ts-ignore appStore.setNetwork(e.target.value); } @@ -94,7 +94,7 @@ >