Clean up session stuff

This commit is contained in:
swagg boi 2021-03-13 23:05:42 -05:00
parent a6186eee2b
commit f02ebbae63

View file

@ -19,7 +19,7 @@ under sub {
my ($c) = @_;
if ($c->cookie('banner') eq 'seen') {
$c->session->{banner} = 'seen' unless $c->session->{banner}
$c->session->{banner} //= 'seen'
}
1;