Fix id access in walletPrioritySort

This commit is contained in:
ekzyis 2024-07-16 22:46:15 +02:00
parent e25a3dbec0
commit 538f1e21d6
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ export function walletPrioritySort (w1, w2) {
// if both wallets have an id, use that as tie breaker
// since that's the order in which autowithdrawals are attempted
if (w1.id && w2.id) return Number(w1.id) - Number(w2.id)
if (w1.config?.id && w2.config?.id) return Number(w1.config.id) - Number(w2.config.id)
// else we will use the card title as tie breaker
return w1.card.title < w2.card.title ? -1 : 1