diff --git a/src/pages/Dashboard/Analysis.js b/src/pages/Dashboard/Analysis.js index 49c3752607060c289b8e7630083734ffdbfc2f7d..03944e5c3f82f18cce4c8fccc5a1dd7fe202e12f 100644 --- a/src/pages/Dashboard/Analysis.js +++ b/src/pages/Dashboard/Analysis.js @@ -140,8 +140,8 @@ class Analysis extends Component { } render() { - const { rangePickerValue, salesType, loading: propsLoding, currentTabKey } = this.state; - const { chart, loading: stateLoading } = this.props; + const { rangePickerValue, salesType, loading: stateLoading, currentTabKey } = this.state; + const { chart, loading: propsLoading } = this.props; const { visitData, visitData2, @@ -153,7 +153,7 @@ class Analysis extends Component { salesTypeDataOnline, salesTypeDataOffline, } = chart; - const loading = propsLoding || stateLoading; + const loading = propsLoading || stateLoading; let salesPieData; if (salesType === 'all') { salesPieData = salesTypeData;