Skip to content

Commit

Permalink
fix: improve ItwAuthLevel type and action
Browse files Browse the repository at this point in the history
  • Loading branch information
ale-mazz committed Feb 13, 2025
1 parent 8cc1e9c commit 4922127
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions ts/features/itwallet/common/store/actions/preferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ export const itwSetReviewPending = createStandardAction(
"ITW_SET_REVIEW_PENDING"
)<boolean>();

export const itwSetAuthLevel =
createStandardAction("ITW_SET_AUTH_LEVEL")<ItwAuthLevel>();
export const itwSetAuthLevel = createStandardAction("ITW_SET_AUTH_LEVEL")<
ItwAuthLevel | undefined
>();

export type ItwPreferencesActions =
| ActionType<typeof itwCloseFeedbackBanner>
Expand Down
2 changes: 1 addition & 1 deletion ts/features/itwallet/common/utils/itwTypesUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,4 @@ export type ItwCredentialStatus =
| "expired"
| ItwJwtCredentialStatus;

export type ItwAuthLevel = undefined | "L2" | "L3";
export type ItwAuthLevel = "L2" | "L3";

0 comments on commit 4922127

Please sign in to comment.