Return empty in FireStats when not data
This commit is contained in:
parent
4ca553ff92
commit
4d0911d529
1 changed files with 3 additions and 2 deletions
|
|
@ -11,8 +11,9 @@ class FireStats extends Component {
|
|||
render() {
|
||||
return (
|
||||
<Fragment>
|
||||
{ this.props.lastCheck && this.props.lastFireDetected &&
|
||||
<Trans>Actualizado <FromNow when={this.props.lastCheck} />, último fuego detectado <FromNow when={this.props.lastFireDetected.when} />.</Trans>}
|
||||
{ this.props.lastCheck && this.props.lastFireDetected ?
|
||||
<Trans>Actualizado <FromNow when={this.props.lastCheck} />, último fuego detectado <FromNow when={this.props.lastFireDetected.when} />.</Trans>
|
||||
: '' }
|
||||
</Fragment>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue