Skip to content

Commit

Permalink
Merge pull request #50 from nada-deriv/fix-hook
Browse files Browse the repository at this point in the history
fix: advertiser list endpoint
  • Loading branch information
farrah-deriv authored May 7, 2024
2 parents d15771b + 2387a33 commit 1e8f53b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/hooks/api/advertiser/p2p-advertiser/useAdvertiserList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 1e8f53b

Please sign in to comment.