disable buttons during bond claims
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
parent
c3dbe0666f
commit
37c447ece5
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "ghost-dao-interface",
|
||||
"private": true,
|
||||
"version": "0.2.7",
|
||||
"version": "0.2.8",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
@ -117,7 +117,7 @@ export const ClaimBonds = ({ chainId, address, secondsTo }) => {
|
||||
</Box>
|
||||
|
||||
<PrimaryButton
|
||||
disabled={totalClaimableBalance._value === 0n}
|
||||
disabled={isPending || totalClaimableBalance._value === 0n}
|
||||
fullWidth
|
||||
className=""
|
||||
onClick={() => onSubmit(notes.filter((note) => secondsTo > note.matured).map(note => note.id))}
|
||||
@ -166,7 +166,7 @@ export const ClaimBonds = ({ chainId, address, secondsTo }) => {
|
||||
<Box mt="16px">
|
||||
<TertiaryButton
|
||||
fullWidth
|
||||
disabled={secondsTo < note.matured}
|
||||
disabled={isPending || secondsTo < note.matured}
|
||||
onClick={() => onSubmit([note.id])}
|
||||
>
|
||||
Claim
|
||||
@ -222,7 +222,7 @@ export const ClaimBonds = ({ chainId, address, secondsTo }) => {
|
||||
<TableCell style={{ padding: "8px 0" }}>
|
||||
<TertiaryButton
|
||||
fullWidth
|
||||
disabled={secondsTo < note.matured}
|
||||
disabled={isPending || secondsTo < note.matured}
|
||||
onClick={() => onSubmit([note.id])}
|
||||
>
|
||||
Claim
|
||||
|
Loading…
Reference in New Issue
Block a user