fix(SW-890): better feature flag handling
This commit is contained in:
@@ -20,10 +20,5 @@ export const signupVerify: LangRoute = {
|
||||
|
||||
export function isSignupPage(path: string): boolean {
|
||||
const signupPaths = [...Object.values(signup), ...Object.values(signupVerify)]
|
||||
const result = signupPaths.some((signupPath) => {
|
||||
const includes = signupPath.includes(path)
|
||||
return includes
|
||||
})
|
||||
|
||||
return result
|
||||
return signupPaths.some((signupPath) => signupPath.includes(path))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user