Fix after update

This commit is contained in:
Dennis Reimann 2024-05-13 12:04:23 +02:00
parent 5b20aca1f2
commit 365423e598
No known key found for this signature in database
GPG key ID: 5009E1797F03F8D0

View file

@ -63,11 +63,11 @@ public class BtcPayAppController(
ContactUrl = serverSettings.ContactUrl,
RegistrationEnabled = policiesSettings.EnableRegistration,
CustomThemeExtension = themeSettings.CustomTheme ? themeSettings.CustomThemeExtension.ToString() : null,
CustomThemeCssUrl = themeSettings.CustomTheme && !string.IsNullOrEmpty(themeSettings.CustomThemeFileId)
? await fileService.GetFileUrl(Request.GetAbsoluteRootUri(), themeSettings.CustomThemeFileId)
CustomThemeCssUrl = themeSettings.CustomTheme && !string.IsNullOrEmpty(themeSettings.CustomThemeCssUrl?.ToString())
? themeSettings.CustomThemeCssUrl.ToString()
: null,
LogoUrl = !string.IsNullOrEmpty(themeSettings.LogoFileId)
? await fileService.GetFileUrl(Request.GetAbsoluteRootUri(), themeSettings.LogoFileId)
LogoUrl = !string.IsNullOrEmpty(themeSettings.LogoUrl?.ToString())
? themeSettings.LogoUrl.ToString()
: null
});
}