Skip to content

Commit

Permalink
fix: 修复语法错误
Browse files Browse the repository at this point in the history
  • Loading branch information
light authored and light committed Dec 11, 2018
1 parent a5f3a83 commit 80321c2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/containers/profile/ProfileMode.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { connect } from 'react-redux'

import Container from '../../components/Container'
import TextPingFang from '../../components/TextPingFang'
import ProfileHeader from './components/ProfileHeader'
import TabBar from './components/TabBar'
import ModeCharts from './components/ModeCharts'
import Pie from './components/Pie'
Expand Down Expand Up @@ -42,7 +41,7 @@ export default class ProfileMode extends Component {
weekModeData: { modes: [], timeRange: [] },
monthModeData: { modes: [], timeRange: [] },
yearModeData: { modes: [], timeRange: [] },
|| 0: 0,
averageMode: 0,
totalDay: 0,
emotions: [],
pieData: [],
Expand Down Expand Up @@ -99,7 +98,7 @@ export default class ProfileMode extends Component {
const yearData = mergeData.length >= 365 ? mergeData.slice(-365) : mergeData

this.setState({
|| 0: (totalMode / myDiaryList.length).toFixed(2),
averageMode: (totalMode / myDiaryList.length).toFixed(2),
totalDay: mergeData.length,
emotions,
pieData: [posDays, midDays, negDays],
Expand Down

0 comments on commit 80321c2

Please sign in to comment.