From 538f1e21d6a0e70dbb595f6ad6efbf19245098f4 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Tue, 16 Jul 2024 22:46:15 +0200 Subject: [PATCH] Fix id access in walletPrioritySort --- wallets/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wallets/index.js b/wallets/index.js index eb5d8da3..76d181e7 100644 --- a/wallets/index.js +++ b/wallets/index.js @@ -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