File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import { connect } from 'react-redux'
1313
1414import Container from '../../components/Container'
1515import TextPingFang from '../../components/TextPingFang'
16- import ProfileHeader from './components/ProfileHeader'
1716import TabBar from './components/TabBar'
1817import ModeCharts from './components/ModeCharts'
1918import Pie from './components/Pie'
@@ -42,7 +41,7 @@ export default class ProfileMode extends Component {
4241 weekModeData : { modes : [ ] , timeRange : [ ] } ,
4342 monthModeData : { modes : [ ] , timeRange : [ ] } ,
4443 yearModeData : { modes : [ ] , timeRange : [ ] } ,
45- || 0 : 0 ,
44+ averageMode : 0 ,
4645 totalDay : 0 ,
4746 emotions : [ ] ,
4847 pieData : [ ] ,
@@ -99,7 +98,7 @@ export default class ProfileMode extends Component {
9998 const yearData = mergeData . length >= 365 ? mergeData . slice ( - 365 ) : mergeData
10099
101100 this . setState ( {
102- || 0 : ( totalMode / myDiaryList . length ) . toFixed ( 2 ) ,
101+ averageMode : ( totalMode / myDiaryList . length ) . toFixed ( 2 ) ,
103102 totalDay : mergeData . length ,
104103 emotions,
105104 pieData : [ posDays , midDays , negDays ] ,
You can’t perform that action at this time.
0 commit comments