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

View File

@ -117,7 +117,7 @@ export const ClaimBonds = ({ chainId, address, secondsTo }) => {
</Box> </Box>
<PrimaryButton <PrimaryButton
disabled={totalClaimableBalance._value === 0n} disabled={isPending || totalClaimableBalance._value === 0n}
fullWidth fullWidth
className="" className=""
onClick={() => onSubmit(notes.filter((note) => secondsTo > note.matured).map(note => note.id))} 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"> <Box mt="16px">
<TertiaryButton <TertiaryButton
fullWidth fullWidth
disabled={secondsTo < note.matured} disabled={isPending || secondsTo < note.matured}
onClick={() => onSubmit([note.id])} onClick={() => onSubmit([note.id])}
> >
Claim Claim
@ -222,7 +222,7 @@ export const ClaimBonds = ({ chainId, address, secondsTo }) => {
<TableCell style={{ padding: "8px 0" }}> <TableCell style={{ padding: "8px 0" }}>
<TertiaryButton <TertiaryButton
fullWidth fullWidth
disabled={secondsTo < note.matured} disabled={isPending || secondsTo < note.matured}
onClick={() => onSubmit([note.id])} onClick={() => onSubmit([note.id])}
> >
Claim Claim