Skip to content

Commit

Permalink
feat: Removed the email from the parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayur committed Nov 8, 2024
1 parent aaf37da commit 76389df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/web/hooks/useUpdatePaymentMethod.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ export function useUpdatePaymentMethod() {
const { mutate: updatePaymentMethod, isLoading: isUpdatePaymentMethodLoading } = useMutation<
any,
IErrorObject,
{ paymentMethodId: string; email: string }
{ paymentMethodId: string }
>(
[API_KEYS.UPDATE_SUBSCRIPTION_PAYMENT_METHOD],
async ({ paymentMethodId, email }) =>
({ paymentMethodId }) =>
commonApi(API_KEYS.UPDATE_SUBSCRIPTION_PAYMENT_METHOD as any, {
parameters: [paymentMethodId, email],
parameters: [paymentMethodId],
}),
{
onSuccess(data) {
Expand Down

0 comments on commit 76389df

Please sign in to comment.