[S] Always put ghost card at the top

This commit is contained in:
Azalea
2024-02-22 17:07:01 -05:00
parent 3fdf255ca5
commit 2d1cad870b

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()