Parcourir la source

Fix 'Invalid date' label in notifications dropdown

Sergiu Miclea il y a 8 ans
Parent
commit
c6aa500e2e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/components/molecules/NotificationDropdown/index.jsx

+ 1 - 1
src/components/molecules/NotificationDropdown/index.jsx

@@ -226,7 +226,7 @@ class NotificationDropdown extends React.Component<Props, State> {
               <Title>
                 <TypeIcon level={item.level} />
                 <TitleLabel>{title}</TitleLabel>
-                <Time>{moment(item.id).format('HH:mm')}</Time>
+                <Time>{moment(Number(item.id)).format('HH:mm')}</Time>
               </Title>
               <Description>{message}</Description>
             </ListItem>