Skip to content

Commit 25235a9

Browse files
committed
fix: fix NPE
1 parent 0a1610d commit 25235a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react/src/contexts/Asgardeo/AsgardeoProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ const AsgardeoProvider: FC<PropsWithChildren<AsgardeoProviderProps>> = ({
469469
<ThemeProvider
470470
inheritFromBranding={preferences?.theme?.inheritFromBranding}
471471
theme={preferences?.theme?.overrides}
472-
mode={getActiveTheme(preferences.theme.mode)}
472+
mode={getActiveTheme(preferences?.theme?.mode)}
473473
>
474474
<FlowProvider>
475475
<UserProvider profile={userProfile} onUpdateProfile={handleProfileUpdate}>

0 commit comments

Comments
 (0)