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() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
{ this.props.lastCheck && this.props.lastFireDetected &&
|
{ this.props.lastCheck && this.props.lastFireDetected ?
|
||||||
<Trans>Actualizado <FromNow when={this.props.lastCheck} />, último fuego detectado <FromNow when={this.props.lastFireDetected.when} />.</Trans>}
|
<Trans>Actualizado <FromNow when={this.props.lastCheck} />, último fuego detectado <FromNow when={this.props.lastFireDetected.when} />.</Trans>
|
||||||
|
: '' }
|
||||||
</Fragment>
|
</Fragment>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue