fix: update marked test cases

This commit is contained in:
steven
2022-10-04 14:35:07 +08:00
parent 486cf8bdac
commit b959acc69d
9 changed files with 28 additions and 19 deletions

View File

@ -1,4 +1,3 @@
import { isEmpty } from "lodash-es";
import React, { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import { userService } from "../../services";
@ -47,7 +46,7 @@ const PreferencesSection = () => {
};
const handleCreateUserBtnClick = async () => {
if (isEmpty(state.createUserEmail) || isEmpty(state.createUserPassword)) {
if (state.createUserEmail === "" || state.createUserPassword === "") {
toastHelper.error(t("message.fill-form"));
return;
}