Make conditional statement more explicit
This commit is contained in:
@@ -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>
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
Reference in New Issue
Block a user