small fixes for more comfortable applause detection

Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
Uncle Fatso 2025-11-12 19:37:23 +03:00
parent 772041d5ed
commit cffaad6973
Signed by: f4ts0
GPG Key ID: 565F4F2860226EBB
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
{
"name": "ghost-dao-interface",
"private": true,
"version": "0.3.10",
"version": "0.3.11",
"type": "module",
"scripts": {
"dev": "vite",

View File

@ -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 }) => {
</Box>
</Box>
{(currentRecord?.step ?? 0) < 3 && (currentSession && currentRecord && currentSession > (currentRecord.sessionIndex ?? 0) + 2) &&
{(currentRecord?.step ?? 3) < 3 && (currentSession && currentRecord && currentSession > (currentRecord.sessionIndex ?? 0) + 2) &&
<Box display="flex" flexDirection="column" gap="5px">
<PrimaryButton
fullWidth
@ -810,7 +810,7 @@ const Bridge = ({ chainId, address, config, connect }) => {
</Box>
</>} />
</Box>}
<Typography fontSize="12px" lineHeight="15px">{clapsInSessionLength} / {authorities?.length}</Typography>
<Typography fontSize="12px" lineHeight="15px">{clapsInSessionLength} / {authorities?.length ?? 0}</Typography>
</Box>
</Box>
)