removed unnccesary changes
This commit is contained in:
1 parent
0db9fc75dc
commit
dce461b586
1 file changed
+1
-2
@@ -98,8 +98,7 @@ export const forgotPassword = createAsyncThunk(
|
|||||||
"auth/forgotPassword",
|
"auth/forgotPassword",
|
||||||
async (form, thunkApi) => {
|
async (form, thunkApi) => {
|
||||||
try {
|
try {
|
||||||
const newForm = {...form, email: form.toLowerCase()};
|
const res = await networkService.forgotPassword(form);
|
||||||
const res = await networkService.forgotPassword(newForm);
|
|
||||||
return res.data;
|
return res.data;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error.response.data) {
|
if (error.response.data) {
|
||||||
|
|||||||
Reference in new issue
Block a user