Skip to content

Commit

Permalink
fix: remove unwanted change
Browse files Browse the repository at this point in the history
  • Loading branch information
nada-deriv committed May 8, 2024
1 parent f07839d commit e54d927
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useCallback, useMemo } from 'react';
import { useP2PAdvertiserCreate, useP2PAdvertiserInfo } from '@deriv-com/api-hooks';
import { useP2PAdvertiserCreate } from '@deriv-com/api-hooks';
import useInvalidateQuery from '../../useInvalidateQuery';

type TCreateAdvertiserPayload = Parameters<ReturnType<typeof useP2PAdvertiserCreate>['mutate']>[0];
Expand All @@ -16,7 +16,6 @@ type TCreateAdvertiserPayload = Parameters<ReturnType<typeof useP2PAdvertiserCre
*
*/
const useAdvertiserCreate = () => {
const { subscribe } = useP2PAdvertiserInfo() ?? {};
const invalidate = useInvalidateQuery();
const {
data,
Expand All @@ -25,7 +24,6 @@ const useAdvertiserCreate = () => {
} = useP2PAdvertiserCreate({
onSuccess: () => {
invalidate('p2p_advertiser_info');
subscribe({});
},
});

Expand Down

0 comments on commit e54d927

Please sign in to comment.