diff --git a/BTCPayServer/Plugins/PointOfSale/Controllers/UIPointOfSaleController.cs b/BTCPayServer/Plugins/PointOfSale/Controllers/UIPointOfSaleController.cs index 98c239342..ab02bec81 100644 --- a/BTCPayServer/Plugins/PointOfSale/Controllers/UIPointOfSaleController.cs +++ b/BTCPayServer/Plugins/PointOfSale/Controllers/UIPointOfSaleController.cs @@ -516,10 +516,13 @@ namespace BTCPayServer.Plugins.PointOfSale.Controllers } } + var store = await _appService.GetStore(app); + var storeBlob = store.GetStoreBlob(); + viewModel.FormName = formData.Name; viewModel.Form = form; - viewModel.FormParameters = formParameters; + viewModel.StoreBranding = new StoreBrandingViewModel(storeBlob); return View("Views/UIForms/View", viewModel); } diff --git a/BTCPayServer/Views/Shared/LayoutHead.cshtml b/BTCPayServer/Views/Shared/LayoutHead.cshtml index f30cdd04e..c0232b7cd 100644 --- a/BTCPayServer/Views/Shared/LayoutHead.cshtml +++ b/BTCPayServer/Views/Shared/LayoutHead.cshtml @@ -15,7 +15,7 @@ -@if (ViewData.TryGetValue("StoreBranding", out var storeBranding)) +@if (ViewData.TryGetValue("StoreBranding", out var storeBranding) && storeBranding != null) { }