summaryrefslogtreecommitdiff
path: root/front/src/components/post/Header.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'front/src/components/post/Header.tsx')
-rw-r--r--front/src/components/post/Header.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/front/src/components/post/Header.tsx b/front/src/components/post/Header.tsx
index e541fa5..4e72fe8 100644
--- a/front/src/components/post/Header.tsx
+++ b/front/src/components/post/Header.tsx
@@ -4,7 +4,7 @@ import { useLocation } from "wouter";
import useLocalState from "@/state/state";
function Header(props: PostProps) {
const [_, navigate] = useLocation();
- const { profiles } = useLocalState();
+ const profiles = useLocalState((s) => s.profiles);
const profile = profiles.get(props.poast.author);
// console.log("profile", profile);
// console.log(props.poast.author.length, "length");