update available bonds after claim

Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
Uncle Fatso 2025-08-20 21:38:42 +03:00
parent 37c447ece5
commit 46ef25613c
Signed by: f4ts0
GPG Key ID: 565F4F2860226EBB
3 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{
"name": "ghost-dao-interface",
"private": true,
"version": "0.2.8",
"version": "0.2.9",
"type": "module",
"scripts": {
"dev": "vite",

View File

@ -69,6 +69,7 @@ export const ClaimBonds = ({ chainId, address, secondsTo }) => {
isPayoutGhst,
indexes
);
await notesRefetch();
setIsPending(false);
}
}

View File

@ -258,7 +258,7 @@ export const useNotes = (chainId, address) => {
}
}) : [];
return { notes };
return { notes, refetch };
}
export const purchaseBond = async (chainId, bondId, amount, maxPrice, user, sender, referral) => {