Skip to content

Commit

Permalink
ux-signals show in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
johatr committed Aug 31, 2023
1 parent 2839e6e commit 5c9a735
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/felles-komponenter/UxSignalsWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useErVeileder } from '../Provider';
const UxSignalsWidget = () => {
const erVeileder = useErVeileder();
const isDesktopOnRender = window.innerWidth >= 992;
const showUxSignalsWidget = !erVeileder && !USE_HASH_ROUTER && ER_PROD && isDesktopOnRender;
const showUxSignalsWidget = !erVeileder && !USE_HASH_ROUTER && isDesktopOnRender;

useEffect(() => {
if (showUxSignalsWidget) {
Expand All @@ -27,7 +27,7 @@ const UxSignalsWidget = () => {

if (!showUxSignalsWidget) return null;

return <div data-uxsignals-embed="panel-838jxh69e" data-uxsignals-mode="demo" className="uxsignalswidget max-w-[620px] mx-auto pb-8" />;
return <div data-uxsignals-embed="panel-838jxh69e" data-uxsignals-mode={ER_PROD ? "" : "demo"} className="uxsignalswidget max-w-[620px] mx-auto pb-8" />;
};

export default UxSignalsWidget;

0 comments on commit 5c9a735

Please sign in to comment.