fix-35 - check for the value (#39)
This commit is contained in:
parent
b958da38dd
commit
c0fc15bb7e
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ export default class ResourceInfo extends React.PureComponent {
|
|||
<div className="flex flex-col" >
|
||||
<TextEllipsis className={ styles.name } text={ data.name } hintText={ data.url } />
|
||||
<div className={ styles.timings }>
|
||||
{ `${ diffFromNowString(data.endedAt) } ago - ${ diffFromNowString(data.startedAt) } old` }
|
||||
{ data.endedAt && data.startedAt && `${ diffFromNowString(data.endedAt) } ago - ${ diffFromNowString(data.startedAt) } old` }
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue