Skip to content

Commit

Permalink
rename to intiatedLoginMethod
Browse files Browse the repository at this point in the history
  • Loading branch information
DanutIlie committed Nov 4, 2024
1 parent 45f5fb2 commit 0139075
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/hooks/login/helpers/clearInitiatedLogins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { IframeProvider } from 'lib/sdkWebWalletIframeProvider';
import { LoginMethodsEnum } from 'types';

export const clearInitiatedLogins = (props?: {
intiatedLogin: LoginMethodsEnum;
intiatedLoginMethod: LoginMethodsEnum;
}) => {
Object.values(LoginMethodsEnum).forEach((method) => {
if (props?.intiatedLogin && method !== props.intiatedLogin) {
if (props?.intiatedLoginMethod && method !== props.intiatedLoginMethod) {
return;
}
const crossWindowProvider = CrossWindowProvider.getInstance();
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/login/useCrossWindowLogin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const useCrossWindowLogin = ({
}

clearInitiatedLogins({
intiatedLogin: LoginMethodsEnum.crossWindow
intiatedLoginMethod: LoginMethodsEnum.crossWindow
});

setIsLoading(true);
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/login/useIframeLogin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const useIframeLogin = ({
}

clearInitiatedLogins({
intiatedLogin: LoginMethodsEnum.iframe
intiatedLoginMethod: LoginMethodsEnum.iframe
});

setIsLoading(true);
Expand Down

0 comments on commit 0139075

Please sign in to comment.