fixed verification email resending

This commit is contained in:
Miodec 2021-07-12 22:56:12 +01:00
parent 2a32e6c53a
commit 0be16ac467

View file

@ -316,8 +316,7 @@ export function migrateFromCookies() {
export function sendVerificationEmail() {
Loader.show();
let cu = firebase.auth().currentUser;
axiosInstance
.post("/sendEmailVerification", {})
cu.sendEmailVerification()
.then(() => {
Loader.hide();
showNotification("Email sent to " + cu.email, 4000);