From cffaad697391d42eb8281aa1b011ca6edd2a3d55 Mon Sep 17 00:00:00 2001 From: Uncle Fatso Date: Wed, 12 Nov 2025 19:37:23 +0300 Subject: [PATCH] small fixes for more comfortable applause detection Signed-off-by: Uncle Fatso --- package.json | 2 +- src/containers/Bridge/Bridge.jsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 5c99a33..abc8a32 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ghost-dao-interface", "private": true, - "version": "0.3.10", + "version": "0.3.11", "type": "module", "scripts": { "dev": "vite", diff --git a/src/containers/Bridge/Bridge.jsx b/src/containers/Bridge/Bridge.jsx index fde4867..f9431a0 100644 --- a/src/containers/Bridge/Bridge.jsx +++ b/src/containers/Bridge/Bridge.jsx @@ -194,7 +194,7 @@ const Bridge = ({ chainId, address, config, connect }) => { const clapsNeeded = Math.floor(clapsInSessionLength * appluseThreshold / 100); const step = finalization > 0 ? 0 - : receivedClapsLength < clapsNeeded + : receivedClapsLength < clapsNeeded && !transactionApplaused ? 1 : !transactionApplaused ? 2 @@ -478,7 +478,7 @@ const Bridge = ({ chainId, address, config, connect }) => { - {(currentRecord?.step ?? 0) < 3 && (currentSession && currentRecord && currentSession > (currentRecord.sessionIndex ?? 0) + 2) && + {(currentRecord?.step ?? 3) < 3 && (currentSession && currentRecord && currentSession > (currentRecord.sessionIndex ?? 0) + 2) && { } /> } - {clapsInSessionLength} / {authorities?.length} + {clapsInSessionLength} / {authorities?.length ?? 0} )