diff --git a/ceremony/src/lib/components/Join.svelte b/ceremony/src/lib/components/Join.svelte index 4b7eb46e94..84329cabcc 100644 --- a/ceremony/src/lib/components/Join.svelte +++ b/ceremony/src/lib/components/Join.svelte @@ -27,12 +27,16 @@ function handlePaste(e: ClipboardEvent): void { } function normalizeString(words: Array): string { - return words.map(word => word.trim().toLowerCase()).join("") + return words + .map(word => word.trim().toLowerCase()) + .join("") + .replace(/[^a-z0-9]/gi, "") } async function handleCodeJoin() { codeLoading = true try { + console.log(code) const codeOk = await callJoinQueue(code) if (codeOk) { contributor.setAllowanceState("hasRedeemed")