From 74c574255e582e868d97dbcfcd49813015289b03 Mon Sep 17 00:00:00 2001 From: Kukks Date: Thu, 30 Apr 2020 09:05:17 +0200 Subject: [PATCH] Payjoin: Fix payjoin detection in checkout UI sometimes, it would think there is a payjoin enabled invoice when really, it was just the address or asset id that has `pj` in it --- .../Views/Shared/Bitcoin_Lightning_LikeMethodCheckout.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer/Views/Shared/Bitcoin_Lightning_LikeMethodCheckout.cshtml b/BTCPayServer/Views/Shared/Bitcoin_Lightning_LikeMethodCheckout.cshtml index 40d519598..f5b392eaf 100644 --- a/BTCPayServer/Views/Shared/Bitcoin_Lightning_LikeMethodCheckout.cshtml +++ b/BTCPayServer/Views/Shared/Bitcoin_Lightning_LikeMethodCheckout.cshtml @@ -228,7 +228,7 @@ }, computed: { hasPayjoin: function(){ - return this.srvModel.invoiceBitcoinUrl.indexOf('@PayjoinClient.BIP21EndpointKey') === -1; + return this.srvModel.invoiceBitcoinUrl.indexOf('@PayjoinClient.BIP21EndpointKey=') === -1; }, coinswitchAmountDue: function() { return this.srvModel.coinSwitchAmountMarkupPercentage