From 2d1cad870bd81749053e13b6d4451ef45a92fd25 Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Thu, 22 Feb 2024 17:07:01 -0500 Subject: [PATCH] [S] Always put ghost card at the top --- AquaNet/src/components/BindCard.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AquaNet/src/components/BindCard.svelte b/AquaNet/src/components/BindCard.svelte index ca3830b0..b3389a25 100644 --- a/AquaNet/src/components/BindCard.svelte +++ b/AquaNet/src/components/BindCard.svelte @@ -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()