aboutsummaryrefslogtreecommitdiff
path: root/src/components/status/status.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2019-01-11 02:40:17 +0300
committerHenry Jameson <me@hjkos.com>2019-01-11 02:40:17 +0300
commitef2585e32b546722f2157bd6203701deb495d2e9 (patch)
tree57c0b051fe061643c0583da521cfc8a89fb45a28 /src/components/status/status.js
parent1fb9ceb59bf0dca5f755f5988f90bdd24a89dd53 (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/status/status.js')
-rw-r--r--src/components/status/status.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js
index 73d53694..7e1e7dab 100644
--- a/src/components/status/status.js
+++ b/src/components/status/status.js
@@ -270,7 +270,7 @@ const Status = {
},
replyEnter (id, event) {
this.showPreview = true
- const targetId = Number(id)
+ const targetId = String(id)
const statuses = this.$store.state.statuses.allStatuses
if (!this.preview) {
@@ -295,7 +295,7 @@ const Status = {
},
watch: {
'highlight': function (id) {
- id = Number(id)
+ id = String(id)
if (this.status.id === id) {
let rect = this.$el.getBoundingClientRect()
if (rect.top < 100) {