diff --git a/client/src/redux/user/user.sagas.js b/client/src/redux/user/user.sagas.js index 2b14340fc..3aeafc751 100644 --- a/client/src/redux/user/user.sagas.js +++ b/client/src/redux/user/user.sagas.js @@ -7,6 +7,7 @@ import { confirmPasswordReset, signInWithEmailAndPassword, signOut, + sendPasswordResetEmail, } from "firebase/auth"; import { doc } from "firebase/firestore"; import i18next from "i18next"; @@ -223,16 +224,16 @@ export function* signInSuccessSaga({ payload }) { export function* onSendPasswordResetStart() { yield takeLatest( UserActionTypes.SEND_PASSWORD_RESET_EMAIL_START, - sendPasswordResetEmail + sendPasswordResetEmailSaga ); yield takeLatest( UserActionTypes.SEND_PASSWORD_RESET_EMAIL_START_AGAIN, - sendPasswordResetEmail + sendPasswordResetEmailSaga ); } -export function* sendPasswordResetEmail({ payload }) { +export function* sendPasswordResetEmailSaga({ payload }) { try { - yield sendPasswordResetEmail(payload, { + yield sendPasswordResetEmail(auth, payload, { url: "https://imex.online/passwordreset", }); @@ -269,7 +270,7 @@ export function* SetAuthLevelFromShopDetails({ payload }) { const userEmail = yield select((state) => state.user.currentUser.email); try { console.log("Setting shop timezone."); - // moment.tz.setDefault(payload.timezone); + // moment.tz.setDefault(payload.timezone); } catch (error) { console.log(error); }