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

View File

@ -69,6 +69,7 @@ export const ClaimBonds = ({ chainId, address, secondsTo }) => {
isPayoutGhst, isPayoutGhst,
indexes indexes
); );
await notesRefetch();
setIsPending(false); 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) => { export const purchaseBond = async (chainId, bondId, amount, maxPrice, user, sender, referral) => {