diff --git a/contexts/AuthContext.tsx b/contexts/AuthContext.tsx index ed2bccdc..676c782d 100644 --- a/contexts/AuthContext.tsx +++ b/contexts/AuthContext.tsx @@ -268,11 +268,11 @@ export const AuthProvider = ({ children, publicPage = false }: any) => { "https://interfacer-gui-staging.dyne.org": EmailTemplate.InterfacerStaging, "http://localhost:3000": EmailTemplate.InterfacerTesting, "https://beta.interfacer.dyne.org": EmailTemplate.InterfacerBeta, - "https://interfacer-test.dyne.im/": EmailTemplate.InterfacerAlpha, }; function getEmailVerificationTemplate() { - if (window && window.location.origin) return SEND_EMAIL_VERIFICATION_TEMPLATES[window.location.origin]; + if (window && window.location.origin) + return SEND_EMAIL_VERIFICATION_TEMPLATES[window.location.origin] || EmailTemplate.InterfacerSelf; else return EmailTemplate.InterfacerTesting; } diff --git a/lib/types/index.ts b/lib/types/index.ts index 7aa98017..e07940a9 100644 --- a/lib/types/index.ts +++ b/lib/types/index.ts @@ -678,7 +678,7 @@ export enum EmailTemplate { InterfacerDeployment = "INTERFACER_DEPLOYMENT", InterfacerStaging = "INTERFACER_STAGING", InterfacerTesting = "INTERFACER_TESTING", - InterfacerAlpha = "INTERFACER_ALPHA", + InterfacerSelf = "INTERFACER_SELF", } export type File = {