0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Fixed up a linting issue for the empty state for Paid Mix

refs: https://github.com/TryGhost/Team/issues/1531
This commit is contained in:
James Morris 2022-05-10 18:43:08 +01:00
parent 8bf30b3a68
commit c488ca4dc5

View file

@ -183,7 +183,7 @@ export default class PaidMix extends Component {
label: (tooltipItems, data) => {
const tooltipTextEl = document.querySelector('#gh-dashboard5-mix-tooltip .gh-dashboard5-tooltip-value');
if (this.isTotalMembersZero) {
tooltipTextEl.innerHTML = "Currently has no data";
tooltipTextEl.innerHTML = 'Currently has no data';
} else {
const label = data.datasets[tooltipItems.datasetIndex].label || '';
const value = data.datasets[tooltipItems.datasetIndex].data[tooltipItems.index] || 0;