We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb6d36f commit 6c73566Copy full SHA for 6c73566
src/pages/JoinPage/useJoinSubmit.tsx
@@ -21,7 +21,10 @@ export function useJoinSubmit(isInvited: boolean) {
21
if (templateParam !== null) {
22
const parsed = Number(templateParam);
23
if (!Number.isInteger(parsed)) {
24
- throw new Error('Template must be an integer');
+ searchParams.delete('template');
25
+ const url = window.location.origin + window.location.pathname;
26
+ window.history.replaceState({}, '', url);
27
+ window.location.reload();
28
}
29
templateId = parsed;
30
0 commit comments