diff options
| author | Henry Jameson <me@hjkos.com> | 2019-01-25 01:39:19 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2019-01-25 01:39:19 +0300 |
| commit | f48e3d0db8029701461250bb8f47ec33f0d68606 (patch) | |
| tree | c0482808265482d7702db517fd4b684af24e5972 /src/services/notification_utils/notification_utils.js | |
| parent | 63df815dd946be74d23c0d5cc2832c7aa28fbda6 (diff) | |
quickfix
Diffstat (limited to 'src/services/notification_utils/notification_utils.js')
| -rw-r--r-- | src/services/notification_utils/notification_utils.js | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |
