From 519384cdf5be73a1c21aa9fb2dcc0c70cbe03afc Mon Sep 17 00:00:00 2001 From: light Date: Mon, 30 Jul 2018 21:49:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DUI=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/containers/profile/ProfileMode.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/containers/profile/ProfileMode.js b/src/containers/profile/ProfileMode.js index c7f42cd0..c609ceb2 100644 --- a/src/containers/profile/ProfileMode.js +++ b/src/containers/profile/ProfileMode.js @@ -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 }) }