We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9f1237 commit f5fda62Copy full SHA for f5fda62
1 file changed
apps/web/modules/signup-view.tsx
@@ -250,7 +250,7 @@ export default function Signup({
250
}
251
};
252
253
- const isPlatformUser = redirectUrl && redirectUrl.indexOf("platform") !== -1 && redirectUrl.indexOf("new") !== -1;
+ const isPlatformUser = redirectUrl?.includes("platform") && redirectUrl?.includes("new");
254
255
const signUp: SubmitHandler<FormValues> = async (_data) => {
256
const { cfToken, ...data } = _data;
0 commit comments