Skip to content

Commit

Permalink
[KAIZEN-0] Fikse håndtering av BFF toggles
Browse files Browse the repository at this point in the history
Togglene som kommer fra BFF er strings, ikke booleans
  • Loading branch information
Jesperpaulsen committed Feb 13, 2024
1 parent b3f1007 commit 42fb38a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/internarbeidsflatedecorator/Decorator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function getFnrFraUrl(): { sokFnr: string | null; pathFnr: string | null } {
}

const DecoratorToggle = ({ configV2, configV3 }: { configV2: DecoratorProps; configV3: DecoratorPropsV3 }) => {
if (window.applicationFeatureToggles?.useNewDecorator === true) {
if (window.applicationFeatureToggles?.useNewDecorator === 'true') {
return <InternflateDecoratorV3 {...configV3} />;
}
return <InternflateDecoratorV2 {...configV2} />;
Expand Down
2 changes: 1 addition & 1 deletion src/window-variabler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ declare global {
interface Window {
erChatvisning: boolean;
applicationFeatureToggles: {
useNewDecorator: boolean;
useNewDecorator: string;
};
}
}
Expand Down

0 comments on commit 42fb38a

Please sign in to comment.