Make conditional statement more explicit

This commit is contained in:
Andrew Eisenberg
2022-05-27 07:08:58 -07:00
parent 9d26304f7a
commit d63a209674

View File

@@ -25,7 +25,7 @@ const LastUpdated = ({ lastUpdated }: Props) => (
<RepoPushIcon size={16} /> <RepoPushIcon size={16} />
</IconContainer> </IconContainer>
<Duration> <Duration>
{humanizeDuration(lastUpdated && -lastUpdated)} {humanizeDuration(lastUpdated === undefined ? undefined : -lastUpdated)}
</Duration> </Duration>
</> </>
) : ( ) : (