From ce191a819fe5b2025944b5eb5e72db57b97d5288 Mon Sep 17 00:00:00 2001 From: "Tom (plebeius.eth)" Date: Mon, 22 Jul 2024 18:14:22 +0200 Subject: [PATCH] show 'loading' while pending post state isn't defined --- src/components/post-desktop/post-desktop.tsx | 4 ++-- src/components/post-mobile/post-mobile.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/post-desktop/post-desktop.tsx b/src/components/post-desktop/post-desktop.tsx index 5d84ba7e..1a149f92 100644 --- a/src/components/post-desktop/post-desktop.tsx +++ b/src/components/post-desktop/post-desktop.tsx @@ -256,8 +256,8 @@ const PostMessage = ({ post }: PostProps) => { const stateString = useStateString(post); - const loadingString = stateString && ( -
{stateString !== 'Failed' ? : stateString}
+ const loadingString = ( +
{stateString !== 'Failed' ? : stateString}
); return ( diff --git a/src/components/post-mobile/post-mobile.tsx b/src/components/post-mobile/post-mobile.tsx index bd50aafc..0eb84770 100644 --- a/src/components/post-mobile/post-mobile.tsx +++ b/src/components/post-mobile/post-mobile.tsx @@ -180,8 +180,8 @@ const PostMessageMobile = ({ post }: PostProps) => { const stateString = useStateString(post); - const loadingString = stateString && ( -
{stateString !== 'Failed' ? : stateString}
+ const loadingString = ( +
{stateString !== 'Failed' ? : stateString}
); return (