From 0a726d598cebda3afa03cf511582ffb03bf7323c Mon Sep 17 00:00:00 2001 From: Kukks Date: Mon, 28 Sep 2020 10:37:35 +0200 Subject: [PATCH] Make sure shopify var is set in the UI --- BTCPayServer/Views/Stores/Integrations/Shopify.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer/Views/Stores/Integrations/Shopify.cshtml b/BTCPayServer/Views/Stores/Integrations/Shopify.cshtml index dc33535f4..a45b4047a 100644 --- a/BTCPayServer/Views/Stores/Integrations/Shopify.cshtml +++ b/BTCPayServer/Views/Stores/Integrations/Shopify.cshtml @@ -2,7 +2,7 @@ @{ var shopify = Model.Shopify; var shopifyCredsSet = shopify?.IntegratedAt.HasValue is true; - var shopifyUrl = !Model.Shopify?.ShopName?.Contains(".") is true ? $"https://{shopify.ShopName}.myshopify.com" : shopify.ShopName; + var shopifyUrl = shopify is null? null: !shopify?.ShopName?.Contains(".") is true ? $"https://{shopify.ShopName}.myshopify.com" : shopify.ShopName; }