[S] Always put ghost card at the top

pull/14/head
Azalea 2024-02-22 17:07:01 -05:00
parent 3fdf255ca5
commit 2d1cad870b
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,9 @@
me = m
m.cards.sort((a, b) => a.registerTime < b.registerTime ? 1 : -1)
CARD.summary(m.ghostCard.luid).then(s => accountCardSummary = s.summary)
// Always put the ghost card at the top
m.cards.sort((a, b) => a.luid === m.ghostCard.luid ? -1 : 1)
}).catch(e => error = e.message)
updateMe()