Fix state label

This commit is contained in:
plebeius.eth
2023-06-07 22:08:09 +02:00
parent 8ca97ba21a
commit 81bc4ffb55
+12 -6
View File
@@ -9,12 +9,18 @@ const StateLabel = ({ commentCid, className }) => {
return (
comment.state === "succeeded" ? null : (
<span className={className}>
<>
<br />
{stateString || comment.state.charAt(0).toUpperCase() + comment.state.slice(1)}
</>
</span>
comment.state === "initializing" ? null : (
<span className="ttl">
<>
<br />
(
<span className={className}>
{stateString}
</span>
)
</>
</span>
)
)
)
};