(chart)
| 146 | }, [chart]); |
| 147 | |
| 148 | const _getUpdatedTime = (chart) => { |
| 149 | const updatedAt = chart.chartDataUpdated || chart.lastAutoUpdate; |
| 150 | if (moment().diff(moment(updatedAt), "days") > 1) { |
| 151 | return moment(updatedAt).calendar(); |
| 152 | } |
| 153 | |
| 154 | return moment(updatedAt).fromNow(); |
| 155 | }; |
| 156 | |
| 157 | const _onAddFilter = async (condition) => { |
| 158 | let found = false; |