Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
denysoblohin-okta committed Sep 5, 2024
1 parent fb60838 commit be6fcf1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/v3/src/components/Widget/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ export const Widget: FunctionComponent<WidgetProps> = (widgetProps) => {
initDefaultLanguage();
});

// on unmount, remove the language
useEffect(() => () => {
if (Bundles.isLoaded(languageCode)) {
Bundles.remove();
Expand Down

0 comments on commit be6fcf1

Please sign in to comment.