From fb213b0e0f67891bb7708750d852d35e666f471e Mon Sep 17 00:00:00 2001 From: Kukks Date: Thu, 17 Dec 2020 16:24:49 +0100 Subject: [PATCH] Fix Coin selection label filtering --- BTCPayServer/Views/Wallets/CoinSelection.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer/Views/Wallets/CoinSelection.cshtml b/BTCPayServer/Views/Wallets/CoinSelection.cshtml index 314396685..c63023e40 100644 --- a/BTCPayServer/Views/Wallets/CoinSelection.cshtml +++ b/BTCPayServer/Views/Wallets/CoinSelection.cshtml @@ -153,7 +153,7 @@ $(function() { currentItem.amount.toString().indexOf(f) != -1 || (currentItem.comment && currentItem.comment.toLowerCase().indexOf(f) != -1) || (currentItem.labels && currentItem.labels.filter(function(l) { - return l.value.toLowerCase().indexOf(f) != -1 + return l.text.toLowerCase().indexOf(f) != -1 || l.tooltip.toLowerCase().indexOf(f) != -1 }).length > 0)) { result.push({...currentItem, selected: this.selectedInputs.indexOf(currentItem.outpoint) != -1 });