Skip to content

Commit

Permalink
update variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Oct 24, 2023
1 parent d47a246 commit fda8587
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/views/home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
}}
>
Expand Down

0 comments on commit fda8587

Please sign in to comment.