From e2035e1fd810f62ec51fe92669701e42b675ecc1 Mon Sep 17 00:00:00 2001 From: "pramod.mahajan" Date: Tue, 14 Oct 2025 14:28:49 +0530 Subject: [PATCH] updated payhistory after add payment --- src/hooks/useCollections.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hooks/useCollections.js b/src/hooks/useCollections.js index b625c99b..6f00697e 100644 --- a/src/hooks/useCollections.js +++ b/src/hooks/useCollections.js @@ -99,6 +99,7 @@ export const useAddPayment = (onSuccessCallBack) => { mutationFn: (payload) => CollectionRepository.makeReceivePayment(payload), onSuccess: () => { client.invalidateQueries({ queryKey: ["collections"] }); + client.invalidateQueries({ queryKey: ["collection"] }); showToast("Payment Received marked Successfully", "success"); if (onSuccessCallBack) onSuccessCallBack(); },