Skip to content

Commit

Permalink
fix: localStorage val
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinfe123 committed Dec 1, 2024
1 parent 50a0f80 commit f96d909
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/www/app/(eg)/example/_components/template-toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import { usePathname } from "next/navigation";
export function TemplateToaster() {
const [isVisibile, setIsVisible] = useState(true);
const path = usePathname();
const notificationStatus: string = localStorage.getItem(
const notificationStatus = localStorage.getItem(
"farmui-notification"
);
) as string;
const templates = path.includes("templates");
const isIframe = isInIframe();
if (isIframe || notificationStatus === "off") {
Expand Down

0 comments on commit f96d909

Please sign in to comment.