mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(posts): hide stale initializing footer
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
type PostLoadingStateComment = {
|
||||
state?: string;
|
||||
timestamp?: number;
|
||||
updatedAt?: number;
|
||||
};
|
||||
|
||||
export const shouldSuppressPostLoadingState = (post: PostLoadingStateComment | undefined): boolean =>
|
||||
Boolean(post?.timestamp && (!post.updatedAt || post.state === 'initializing'));
|
||||
Reference in New Issue
Block a user