Hemmelig.app/shared/helpers/get-email-domain.js
bjarneo 0c86efd56c
refactor: use fastify vite for the dev server (#284)
* refactor: use fastify vite for the server

by doing this we do not need to have local hacks for the routes. No local proxy needed. Everything just works.

* fix: update the dockerfile build path

* fix: update package.json

* fix: fonts path
2024-03-11 13:43:20 +01:00

11 lines
199 B
JavaScript

function getEmailDomain(email) {
const parts = email.split('@');
if (parts.length === 2) {
return parts[1];
} else {
return email;
}
}
export default getEmailDomain;