1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00

fixed comment distance to week

This commit is contained in:
Fedor Katurov 2022-07-15 17:41:03 +07:00
parent 9964203c18
commit 222f2dd1d0

View file

@ -59,7 +59,7 @@ const Comment: FC<IProps> = memo(
return ( return (
<CommentContent <CommentContent
prefix={ prefix={
Math.abs(group.distancesInDays[index]) > 30 && ( Math.abs(group.distancesInDays[index]) > 7 && (
<CommentDistance <CommentDistance
firstDate={comment?.created_at ? parseISO(comment.created_at) : undefined} firstDate={comment?.created_at ? parseISO(comment.created_at) : undefined}
secondDate={ secondDate={