diff options
Diffstat (limited to 'front/src/components/post/Reactions.tsx')
-rw-r--r-- | front/src/components/post/Reactions.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/front/src/components/post/Reactions.tsx b/front/src/components/post/Reactions.tsx index ee40d26..ae75d8c 100644 --- a/front/src/components/post/Reactions.tsx +++ b/front/src/components/post/Reactions.tsx @@ -20,7 +20,7 @@ import Modal from "../modals/Modal"; import useLocalState from "@/state/state"; export function ReactModal({ send }: { send: (s: string) => Promise<number> }) { - const { setModal } = useLocalState(); + const { setModal } = useLocalState((s) => ({ setModal: s.setModal })); async function sendReact(e: React.MouseEvent, s: string) { e.stopPropagation(); const res = await send(s); @@ -115,7 +115,7 @@ export function TrillReactModal({ poast }: { poast: Poast }) { addNotification: s.addNotification, })); const our = api!.airlock.our!; - + async function sendReact(s: string) { const result = await api!.addReact(poast.host, poast.id, s); // Only add notification if reacting to someone else's post |