refactor(ZeroProvider): simplify route handling by removing desktop check for public routes

This commit is contained in:
Anish Sarkar 2026-06-26 22:15:48 +05:30
parent 3ce759f1d6
commit f14c471a03

View file

@ -250,7 +250,7 @@ export function ZeroProvider({ children }: { children: React.ReactNode }) {
const pathname = usePathname();
const isDesktop = typeof window !== "undefined" && !!window.electronAPI;
if (!isDesktop && isPublicRoute(pathname)) {
if (isPublicRoute(pathname)) {
return <>{children}</>;
}