From 71c239fa1d7208cb573443393f5eb3ccbebcb68b Mon Sep 17 00:00:00 2001
From: "plebeius.eth"
Date: Sat, 16 Dec 2023 17:25:20 +0100
Subject: [PATCH] fix(reply): only show state string if state is pending
---
src/components/reply/reply.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/components/reply/reply.tsx b/src/components/reply/reply.tsx
index 4e2eeefb..ff302c3e 100644
--- a/src/components/reply/reply.tsx
+++ b/src/components/reply/reply.tsx
@@ -129,7 +129,7 @@ interface ReplyProps {
}
const Reply = ({ depth = 0, isSingle, isNotification = false, reply = {} }: ReplyProps) => {
- const { author, cid, content, downvoteCount, flair, link, linkHeight, linkWidth, markedAsRead, removed, spoiler, subplebbitAddress, timestamp, upvoteCount } =
+ const { author, cid, content, downvoteCount, flair, link, linkHeight, linkWidth, markedAsRead, removed, spoiler, state, subplebbitAddress, timestamp, upvoteCount } =
reply || {};
const subplebbit = useSubplebbit({ subplebbitAddress });
@@ -197,7 +197,7 @@ const Reply = ({ depth = 0, isSingle, isNotification = false, reply = {} }: Repl
>
)}
- {loadingString}
+ {state === 'pending' && loadingString}
{!collapsed && (