Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Fix code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
mamikals committed Sep 29, 2023
1 parent 983b2b4 commit d7dd635
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/komponenter/footer/chatbot/ChatbotWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ export const ChatbotWrapper = () => {
return;
}

const preferredFilter =
arbeidsflate === MenuValue.ARBEIDSGIVER
? 'arbeidsgiver'
: language === Locale.NYNORSK
? 'nynorsk'
: 'bokmal';
let preferredFilter;
if (arbeidsflate === MenuValue.ARBEIDSGIVER) {
preferredFilter = 'arbeidsgiver';
} else {
preferredFilter = language === Locale.NYNORSK ? 'nynorsk' : 'bokmal';
}

const options: BoostConfig = {
chatPanel: {
Expand Down

0 comments on commit d7dd635

Please sign in to comment.