diff --git a/src/komponenter/footer/chatbot/ChatbotWrapper.tsx b/src/komponenter/footer/chatbot/ChatbotWrapper.tsx index f38c288b1..c8d2b2d71 100644 --- a/src/komponenter/footer/chatbot/ChatbotWrapper.tsx +++ b/src/komponenter/footer/chatbot/ChatbotWrapper.tsx @@ -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: {