mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
show cid instead of pending
This commit is contained in:
@@ -14,9 +14,11 @@ const PendingLabel = ({ commentIndex }) => {
|
||||
}, []);
|
||||
|
||||
if (commentIndex === undefined) return null;
|
||||
|
||||
|
||||
return (
|
||||
commentIndex && stateString !== "Succeeded" ? (
|
||||
comment.cid ? (
|
||||
<span>{comment.cid.slice(2, 14)}</span>
|
||||
) : (
|
||||
(comment.state === "failed" || (stateString === undefined && !isLoading)) ? (
|
||||
<span style={{color: 'red', fontWeight: '700'}}>
|
||||
Failed
|
||||
@@ -26,7 +28,7 @@ const PendingLabel = ({ commentIndex }) => {
|
||||
Pending
|
||||
</span>
|
||||
)
|
||||
) : null
|
||||
)
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ const StateLabel = ({ commentIndex, className }) => {
|
||||
|
||||
return (
|
||||
commentIndex && stateString !== "Succeeded" ? (
|
||||
(comment.state === "failed" || (stateString === undefined && !isLoading)) ? (
|
||||
(comment.state === "failed" || (stateString === undefined && !isLoading && comment.cid === undefined)) ? (
|
||||
<span className="ttl">
|
||||
<br />
|
||||
(
|
||||
|
||||
@@ -238,7 +238,7 @@ const Thread = () => {
|
||||
setNewSuccessMessage('Challenge Success');
|
||||
}
|
||||
} else if (challengeVerification.challengeSuccess === false) {
|
||||
setNewErrorMessage('challenge failed', {reason: challengeVerification.reason, errors: challengeVerification.errors});
|
||||
setNewErrorMessage('Challenge Failed', {reason: challengeVerification.reason, errors: challengeVerification.errors});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user