Shun Miyazawa 4 лет назад
Родитель
Сommit
d9e4d1c80f
1 измененных файлов с 6 добавлено и 1 удалено
  1. 6 1
      packages/app/src/components/InAppNotification/InAppNotificationElm.tsx

+ 6 - 1
packages/app/src/components/InAppNotification/InAppNotificationElm.tsx

@@ -101,7 +101,12 @@ const InAppNotificationElm = (props: Props): JSX.Element => {
             <b>{actionUsers}</b> {actionMsg} <PagePathLabel page={pagePath} />
             <b>{actionUsers}</b> {actionMsg} <PagePathLabel page={pagePath} />
           </div>
           </div>
           <i className={`${actionIcon} mr-2`} />
           <i className={`${actionIcon} mr-2`} />
-          <FormattedDistanceDate id={notification._id} date={notification.createdAt} isShowTooltip={false} />
+          <FormattedDistanceDate
+            id={notification._id}
+            date={notification.createdAt}
+            differenceForAvoidingFormat={notification.createdAt}
+            isShowTooltip={false}
+          />
         </div>
         </div>
       </div>
       </div>
     </div>
     </div>