fix: modify only when needed

This commit is contained in:
TrèsAbhi committed 2025-10-14 22:06:01 -05:00
1 parent 94e8a07f90
commit 7becb7b6ad
1 file changed
+3 -1
@@ -17,7 +17,9 @@ export function Page({
}: Props & MaybeSkeletonComponentProps) {
const generated = Playlist.use((state) => state.list !== undefined);
if (App.state.logins.wargaming) TankFilters.state.ownership = "owned";
if (App.state.logins.wargaming && TankFilters.state.ownership !== "owned") {
TankFilters.state.ownership = "owned";
}
return (
<LocaleProvider locale={locale}>