Add clarifying comment in pages registry filter logic
Co-authored-by: JavMB <114607632+JavMB@users.noreply.github.com>
This commit is contained in:
parent
d8779ca2f6
commit
1c2a4da047
|
|
@ -37,6 +37,7 @@ export function getAvailablePages(isAuthenticated) {
|
|||
if (!isAuthenticated) {
|
||||
return [];
|
||||
}
|
||||
// Filter pages based on authentication requirement
|
||||
return pagesRegistry.filter(page => !page.requiresAuth || isAuthenticated);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue