small fixes for more comfortable applause detection
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
parent
772041d5ed
commit
cffaad6973
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "ghost-dao-interface",
|
||||
"private": true,
|
||||
"version": "0.3.10",
|
||||
"version": "0.3.11",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@ -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>
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user