From 46ef25613cf51e4e4479dd92720174b9af6a8ad3 Mon Sep 17 00:00:00 2001 From: Uncle Fatso Date: Wed, 20 Aug 2025 21:38:42 +0300 Subject: [PATCH] update available bonds after claim Signed-off-by: Uncle Fatso --- package.json | 2 +- src/containers/Bond/components/ClaimBonds.jsx | 1 + src/hooks/bonds/index.jsx | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 24ee6b4..e24aab2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ghost-dao-interface", "private": true, - "version": "0.2.8", + "version": "0.2.9", "type": "module", "scripts": { "dev": "vite", diff --git a/src/containers/Bond/components/ClaimBonds.jsx b/src/containers/Bond/components/ClaimBonds.jsx index 6728b19..c064db5 100644 --- a/src/containers/Bond/components/ClaimBonds.jsx +++ b/src/containers/Bond/components/ClaimBonds.jsx @@ -69,6 +69,7 @@ export const ClaimBonds = ({ chainId, address, secondsTo }) => { isPayoutGhst, indexes ); + await notesRefetch(); setIsPending(false); } } diff --git a/src/hooks/bonds/index.jsx b/src/hooks/bonds/index.jsx index bc37906..825831f 100644 --- a/src/hooks/bonds/index.jsx +++ b/src/hooks/bonds/index.jsx @@ -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) => {