From 80a7035154ccd4ccf9f761d4117f286e352676e9 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 17 Jan 2019 23:08:44 +0300 Subject: removing unnecessary conversions since it should already be converted in normalizer --- src/components/conversation/conversation.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/components/conversation/conversation.js') diff --git a/src/components/conversation/conversation.js b/src/components/conversation/conversation.js index 237de7e5..9bf5e136 100644 --- a/src/components/conversation/conversation.js +++ b/src/components/conversation/conversation.js @@ -33,7 +33,9 @@ const conversation = { replies () { let i = 1 return reduce(this.conversation, (result, {id, in_reply_to_status_id}) => { - const irid = String(in_reply_to_status_id) + /* eslint-disable camelcase */ + const irid = in_reply_to_status_id + /* eslint-enable camelcase */ if (irid) { result[irid] = result[irid] || [] result[irid].push({ @@ -70,7 +72,6 @@ const conversation = { } }, getReplies (id) { - id = String(id) return this.replies[id] || [] }, focused (id) { @@ -81,7 +82,7 @@ const conversation = { } }, setHighlight (id) { - this.highlight = String(id) + this.highlight = id } } } -- cgit v1.2.3-70-g09d2