diff --git a/src/components/actions/composeButton/ComposeButton.tsx b/src/components/actions/composeButton/ComposeButton.tsx index 7a31e0be..58f272e4 100644 --- a/src/components/actions/composeButton/ComposeButton.tsx +++ b/src/components/actions/composeButton/ComposeButton.tsx @@ -19,8 +19,6 @@ export default function ComposeButton(props: Props) { : ""; const { openComposer } = useComposerControls(); - const canUpdate = typeof window !== "undefined"; - return ( <> {mode === "float" && ( @@ -28,8 +26,8 @@ export default function ComposeButton(props: Props) { onClick={() => openComposer({ mention: userHandle })} className="z-40 p-3.5 rounded-full fixed md:hidden right-3 bottom-24 bg-primary text-white hover:bg-primary-dark outline-none ease-linear transition-all" style={{ - opacity: canUpdate ? `${100 - (val ?? 0)}%` : "none", - transform: canUpdate ? `translateY(${val ?? 0}%)` : "none", + opacity: val ? `${100 - (val ?? 0)}%` : "100%", + transform: val ? `translateY(${val ?? 0}%)` : "100%", }} > diff --git a/src/components/actions/refetch/Refetch.tsx b/src/components/actions/refetch/Refetch.tsx index f9b1c078..66280000 100644 --- a/src/components/actions/refetch/Refetch.tsx +++ b/src/components/actions/refetch/Refetch.tsx @@ -14,15 +14,13 @@ export default function Refetch(props: Props) { const val = useScrollContext(); const debouncedRefetch = useDebouncedCallback(onRefetch, 300); - const canUpdate = typeof window !== "undefined"; - return (