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", "name": "ghost-dao-interface",
"private": true, "private": true,
"version": "0.3.10", "version": "0.3.11",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",

View File

@ -194,7 +194,7 @@ const Bridge = ({ chainId, address, config, connect }) => {
const clapsNeeded = Math.floor(clapsInSessionLength * appluseThreshold / 100); const clapsNeeded = Math.floor(clapsInSessionLength * appluseThreshold / 100);
const step = finalization > 0 const step = finalization > 0
? 0 ? 0
: receivedClapsLength < clapsNeeded : receivedClapsLength < clapsNeeded && !transactionApplaused
? 1 ? 1
: !transactionApplaused : !transactionApplaused
? 2 ? 2
@ -478,7 +478,7 @@ const Bridge = ({ chainId, address, config, connect }) => {
</Box> </Box>
</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"> <Box display="flex" flexDirection="column" gap="5px">
<PrimaryButton <PrimaryButton
fullWidth fullWidth
@ -810,7 +810,7 @@ const Bridge = ({ chainId, address, config, connect }) => {
</Box> </Box>
</>} /> </>} />
</Box>} </Box>}
<Typography fontSize="12px" lineHeight="15px">{clapsInSessionLength} / {authorities?.length}</Typography> <Typography fontSize="12px" lineHeight="15px">{clapsInSessionLength} / {authorities?.length ?? 0}</Typography>
</Box> </Box>
</Box> </Box>
) )