Skip to content

Commit

Permalink
feat/MSSDK-2097: update the type of performUnsubscribe in useUnsubscr…
Browse files Browse the repository at this point in the history
…ibeImmediately custom hook
  • Loading branch information
Saddage committed Feb 20, 2025
1 parent 0ef1e32 commit a1676bd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useEffect } from 'react';

type UseUnsubscribeImmediatelyArguments = {
skipCancellationSurveyStep?: boolean;
performUnsubscribe: () => void;
performUnsubscribe: () => Promise<void>;
};

const useUnsubscribeImmediately = ({
Expand All @@ -12,7 +12,7 @@ const useUnsubscribeImmediately = ({
useEffect(() => {
const unsubscribeImmediatelyIfNeeded = async () => {
if (skipCancellationSurveyStep) {
performUnsubscribe();
await performUnsubscribe();
}
};

Expand Down

0 comments on commit a1676bd

Please sign in to comment.