From fda858703798811644e70b47d3ce7b71f3f152cb Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Tue, 24 Oct 2023 18:19:46 -0300 Subject: [PATCH] update variable. --- src/views/home/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/home/index.tsx b/src/views/home/index.tsx index 49c68f8b0..ecd895a91 100644 --- a/src/views/home/index.tsx +++ b/src/views/home/index.tsx @@ -14,7 +14,7 @@ import RelaySelectionProvider, { useRelaySelectionContext } from "../../provider import { NostrRequestFilter } from "../../types/nostr-query"; import useClientSideMuteFilter from "../../hooks/use-client-side-mute-filter"; -const showRepliesStored = localStorage.getItem("show-replies") === "true"; +var showRepliesStored = localStorage.getItem("show-replies") === "true"; function HomePage() { const timelinePageEventFilter = useTimelinePageEventFilter(); @@ -50,6 +50,7 @@ function HomePage() { isChecked={showReplies.isOpen} onChange={(v) => { localStorage.setItem("show-replies", v.target.checked ? "true" : "false"); + showRepliesStored = v.target.checked; showReplies.onToggle(); }} >