upgrade hooks, update state label

This commit is contained in:
plebeius.eth
2023-08-21 17:35:40 +02:00
parent 7478530b3f
commit cc734806f7
3 changed files with 65 additions and 3 deletions
+2 -2
View File
@@ -6,11 +6,11 @@ const StateLabel = ({ commentIndex, className }) => {
const comment = useAccountComment({commentIndex: commentIndex});
const stateString = useStateString(comment);
if (comment.updatedAt !== undefined) {
if (comment.updatedAt !== undefined || comment.index === undefined) {
return null;
}
if (comment.state === "failed") {
if (comment.state === "failed" || comment.state === "succeeded") {
return null;
}