diff options
| author | Henry Jameson <me@hjkos.com> | 2019-01-11 02:40:17 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2019-01-11 02:40:17 +0300 |
| commit | ef2585e32b546722f2157bd6203701deb495d2e9 (patch) | |
| tree | 57c0b051fe061643c0583da521cfc8a89fb45a28 /src/components/conversation/conversation.js | |
| parent | 1fb9ceb59bf0dca5f755f5988f90bdd24a89dd53 (diff) | |
Remove all explicit and implicit conversions of statusId to number, changed
explicit ones so that they convert them to string
Diffstat (limited to 'src/components/conversation/conversation.js')
| -rw-r--r-- | src/components/conversation/conversation.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/conversation/conversation.js b/src/components/conversation/conversation.js index 9d9f7bbe..95432248 100644 --- a/src/components/conversation/conversation.js +++ b/src/components/conversation/conversation.js @@ -32,7 +32,7 @@ const conversation = { replies () { let i = 1 return reduce(this.conversation, (result, {id, in_reply_to_status_id}) => { - const irid = Number(in_reply_to_status_id) + const irid = String(in_reply_to_status_id) if (irid) { result[irid] = result[irid] || [] result[irid].push({ @@ -69,7 +69,7 @@ const conversation = { } }, getReplies (id) { - id = Number(id) + id = String(id) return this.replies[id] || [] }, focused (id) { @@ -80,7 +80,7 @@ const conversation = { } }, setHighlight (id) { - this.highlight = Number(id) + this.highlight = String(id) } } } |
