disable buttons during bond claims

Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
Uncle Fatso 2025-08-20 21:15:49 +03:00
parent c3dbe0666f
commit 37c447ece5
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.2.7",
"version": "0.2.8",
"type": "module",
"scripts": {
"dev": "vite",

View File

@ -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