Skip to content

Commit

Permalink
fix: 修复UI显示
Browse files Browse the repository at this point in the history
  • Loading branch information
light authored and light committed Jul 30, 2018
1 parent 73b3e80 commit 519384c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/containers/profile/ProfileMode.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ export default class ProfileMode extends Component {
if (this.props.user.emotions_basis) {
const reports = this.props.user.emotions_report.split('\n')
for (let report of reports) {
const indexLeft = report.indexOf('(')
const indexRight = report.indexOf(')')
const indexLeft = report.indexOf('')
const indexRight = report.indexOf('')
const title = report.slice(indexLeft + 1, indexRight)
const content = report.slice(0, indexLeft)

reportList.push({ title, content })
}

Expand Down

0 comments on commit 519384c

Please sign in to comment.