From b2846893138086023ee43e8919689e659639579a Mon Sep 17 00:00:00 2001 From: Shpuld Shpuldson Date: Fri, 23 Jun 2017 16:49:11 +0300 Subject: [PATCH] Hotfix for JS error in auto completion in firefox. --- src/components/post_status_form/post_status_form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index a8b4d39c..c0970263 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -49,7 +49,7 @@ const PostStatusForm = { computed: { candidates () { if (this.textAtCaret.charAt(0) === '@') { - const matchedUsers = filter(this.users, (user) => (user.name + user.screen_name).match(this.textAtCaret.slice(1))) + const matchedUsers = filter(this.users, (user) => (String(user.name + user.screen_name)).match(this.textAtCaret.slice(1))) if (matchedUsers.length <= 0) { return false }