add validation to cookie consent form

This commit is contained in:
sbwalker
2026-04-08 16:54:40 -04:00
parent 0ea27e7147
commit 7c4c6f9c02

View File

@@ -83,7 +83,10 @@
get => ""; get => "";
set set
{ {
_showBanner = bool.Parse(value); if (!bool.TryParse(value, out _showBanner))
{
_showBanner = false;
}
_togglePostback = true; _togglePostback = true;
} }
} }