Skip to content

Commit f5fda62

Browse files
fix
1 parent d9f1237 commit f5fda62

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/web/modules/signup-view.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export default function Signup({
250250
}
251251
};
252252

253-
const isPlatformUser = redirectUrl && redirectUrl.indexOf("platform") !== -1 && redirectUrl.indexOf("new") !== -1;
253+
const isPlatformUser = redirectUrl?.includes("platform") && redirectUrl?.includes("new");
254254

255255
const signUp: SubmitHandler<FormValues> = async (_data) => {
256256
const { cfToken, ...data } = _data;

0 commit comments

Comments
 (0)