mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(post): "c/Pending" could appear on first render
This commit is contained in:
@@ -172,7 +172,7 @@ const PostInfo = ({ openReplyModal, post, postReplyCount = 0, roles, isHidden }:
|
|||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<span>c/</span>
|
<span>c/</span>
|
||||||
<span className={styles.pendingCid}>{state === 'failed' || stateString === 'Failed' ? 'Failed' : 'Pending'}</span>
|
<span className={styles.pendingCid}>{state === 'failed' || stateString === 'Failed' ? 'Failed' : state === 'pending' ? 'Pending' : ''}</span>
|
||||||
</>
|
</>
|
||||||
))}
|
))}
|
||||||
{pinned && (
|
{pinned && (
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ const PostInfoAndMedia = ({ openReplyModal, post, postReplyCount = 0, roles }: P
|
|||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<span>c/</span>
|
<span>c/</span>
|
||||||
<span className={styles.pendingCid}>{state === 'failed' || stateString === 'Failed' ? 'Failed' : 'Pending'}</span>
|
<span className={styles.pendingCid}>{state === 'failed' || stateString === 'Failed' ? 'Failed' : state === 'pending' ? 'Pending' : ''}</span>
|
||||||
</>
|
</>
|
||||||
))}
|
))}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user