Skip to content

Commit

Permalink
fix: 🐛 changhe email verification template alpha > self
Browse files Browse the repository at this point in the history
  • Loading branch information
phoebus-84 committed Jan 15, 2025
1 parent 30bebac commit 0116e62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions contexts/AuthContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 0116e62

Please sign in to comment.