mirror of https://github.com/hykilpikonna/AquaDX
[S] Always put ghost card at the top
parent
3fdf255ca5
commit
2d1cad870b
|
@ -19,6 +19,9 @@
|
||||||
me = m
|
me = m
|
||||||
m.cards.sort((a, b) => a.registerTime < b.registerTime ? 1 : -1)
|
m.cards.sort((a, b) => a.registerTime < b.registerTime ? 1 : -1)
|
||||||
CARD.summary(m.ghostCard.luid).then(s => accountCardSummary = s.summary)
|
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)
|
}).catch(e => error = e.message)
|
||||||
updateMe()
|
updateMe()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue