From ac71cbd9e2fb0f65e742dbd94827faf67da034d1 Mon Sep 17 00:00:00 2001 From: Hollgy Date: Sun, 24 Mar 2024 22:59:49 +0100 Subject: [PATCH] Bugfix of setEdited, bordercolor swap --- client-solid/src/Components/PostSegment.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client-solid/src/Components/PostSegment.tsx b/client-solid/src/Components/PostSegment.tsx index 2de80ee..e0d10af 100644 --- a/client-solid/src/Components/PostSegment.tsx +++ b/client-solid/src/Components/PostSegment.tsx @@ -22,11 +22,11 @@ export function PostSegment(props: { post: Post }): JSXElement { createEffect((): void => { setUpdatedAt(new Date(local.post.createdAt).toDateString()); setCreatedAT(new Date(local.post.updatedAt).toDateString()); - setEdited(updatedAt() === createdAt()); + setEdited(!(updatedAt() === createdAt())); }); return ( -
+

{createdAt()}