style: hide save as image button when not chart

This commit is contained in:
Joshua Shoemaker 2020-08-08 00:26:22 -05:00
parent 9200d12f0c
commit e61c8e351b

View File

@ -52,7 +52,7 @@ class ChartViewer extends Component {
return ( return (
<div className='ChartViewer'> <div className='ChartViewer'>
{this.renderChart()} {this.renderChart()}
<Button onClick={this.saveChart}>Save As Image</Button> { this.state.chart ? <Button onClick={this.saveChart}>Save As Image</Button> : '' }
</div> </div>
) )
} }