From 2387a33d238828ac09cc9842eba1469654fc217e Mon Sep 17 00:00:00 2001 From: Nada Date: Tue, 7 May 2024 15:51:11 +0400 Subject: [PATCH] fix: advertiser list endpoint --- .../api/advertiser/p2p-advertiser/useAdvertiserList.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/hooks/api/advertiser/p2p-advertiser/useAdvertiserList.ts b/src/hooks/api/advertiser/p2p-advertiser/useAdvertiserList.ts index 671e9d5f..0ca568a2 100644 --- a/src/hooks/api/advertiser/p2p-advertiser/useAdvertiserList.ts +++ b/src/hooks/api/advertiser/p2p-advertiser/useAdvertiserList.ts @@ -14,7 +14,11 @@ const useAdvertiserList = (payload?: THookPayload) => { if (!payload?.advertiser_name) { delete payload?.advertiser_name; } - const { data, ...rest } = useP2pAdvertiserList({ ...payload, refetchOnWindowFocus: false }); + const { data, ...rest } = useP2pAdvertiserList({ + payload, + queryKey: ['p2p_advertiser_list', payload], + refetchOnWindowFocus: false, + }); // Add additional information to the 'p2p_advertiser_list' data const modified_data = useMemo(() => {