mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-13 05:48:36 +03:00
unintentional timestamp precision show up normally
This commit is contained in:
@@ -61,7 +61,7 @@ class Card extends React.Component {
|
||||
<CardLocation
|
||||
language={this.props.language}
|
||||
location={this.props.event.location}
|
||||
isPrecise={(this.props.event.type === 'Structure')}
|
||||
isPrecise={(!this.props.event.type || this.props.event.type === 'Structure')}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -8,12 +8,13 @@ const CardTimestamp = ({ timelabel, language, precision }) => {
|
||||
// const estimatedLang = copy[language].cardstack.estimated
|
||||
const unknownLang = copy[language].cardstack.unknown_time
|
||||
|
||||
console.log(precision)
|
||||
if (isNotNullNorUndefined(timelabel)) {
|
||||
return (
|
||||
<div className='card-cell timestamp'>
|
||||
<p>
|
||||
<i className='material-icons left'>today</i>
|
||||
{timelabel}{(precision !== '') ? ` - ${precision}` : ''}
|
||||
{timelabel}{(precision && precision !== '') ? ` - ${precision}` : ''}
|
||||
</p>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user