From c0bc671572a13b48d33ea567fc884a72e51f2be0 Mon Sep 17 00:00:00 2001 From: shadab-taiko <108871478+shadab-taiko@users.noreply.github.com> Date: Fri, 31 Mar 2023 13:43:13 +0530 Subject: [PATCH] fix(status-page): latest proof time (#13511) --- packages/status-page/src/pages/home/Home.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/status-page/src/pages/home/Home.svelte b/packages/status-page/src/pages/home/Home.svelte index f81104ff067..c10d651d162 100644 --- a/packages/status-page/src/pages/home/Home.svelte +++ b/packages/status-page/src/pages/home/Home.svelte @@ -253,10 +253,12 @@ const contract = new Contract(address, TaikoL1, provider); contract.on( "BlockProven", - (id, parentHash, blockHash, prover, provenAt) => { + (id, parentHash, blockHash, prover, provenAt, ...args) => { // ignore oracle prover if (prover.toLowerCase() !== oracleProverAddress.toLowerCase()) { - onEvent(new Date(provenAt.toNumber() * 1000).toString()); + if(!provenAt.eq(0)) { + onEvent(new Date(provenAt.toNumber() * 1000).toString()); + } } } );