From f48e3d0db8029701461250bb8f47ec33f0d68606 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Fri, 25 Jan 2019 01:39:19 +0300 Subject: [PATCH] quickfix --- src/components/conversation/conversation.js | 4 ++-- src/modules/statuses.js | 4 ++-- src/services/notification_utils/notification_utils.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/conversation/conversation.js b/src/components/conversation/conversation.js index 07b7c692..ae8ab4fc 100644 --- a/src/components/conversation/conversation.js +++ b/src/components/conversation/conversation.js @@ -4,8 +4,8 @@ import Status from '../status/status.vue' const sortById = (a, b) => { const seqA = Number(a.action.id) const seqB = Number(b.action.id) - const isSeqA = Number.isNaN(seqA) - const isSeqB = Number.isNaN(seqB) + const isSeqA = !Number.isNaN(seqA) + const isSeqB = !Number.isNaN(seqB) if (isSeqA && isSeqB) { return seqA > seqB ? -1 : 1 } else if (isSeqA && !isSeqB) { diff --git a/src/modules/statuses.js b/src/modules/statuses.js index 27d4e94c..20a8d2eb 100644 --- a/src/modules/statuses.js +++ b/src/modules/statuses.js @@ -84,8 +84,8 @@ const mergeOrAdd = (arr, obj, item) => { const sortById = (a, b) => { const seqA = Number(a.id) const seqB = Number(b.id) - const isSeqA = Number.isNaN(seqA) - const isSeqB = Number.isNaN(seqB) + const isSeqA = !Number.isNaN(seqA) + const isSeqB = !Number.isNaN(seqB) if (isSeqA && isSeqB) { return seqA > seqB ? -1 : 1 } else if (isSeqA && !isSeqB) { diff --git a/src/services/notification_utils/notification_utils.js b/src/services/notification_utils/notification_utils.js index 4a59bef2..cd8f3f9e 100644 --- a/src/services/notification_utils/notification_utils.js +++ b/src/services/notification_utils/notification_utils.js @@ -12,8 +12,8 @@ export const visibleTypes = store => ([ const sortById = (a, b) => { const seqA = Number(a.action.id) const seqB = Number(b.action.id) - const isSeqA = Number.isNaN(seqA) - const isSeqB = Number.isNaN(seqB) + const isSeqA = !Number.isNaN(seqA) + const isSeqB = !Number.isNaN(seqB) if (isSeqA && isSeqB) { return seqA > seqB ? -1 : 1 } else if (isSeqA && !isSeqB) {