clean code
This commit is contained in:
@@ -21,7 +21,6 @@
|
||||
email: string;
|
||||
password: string; // Note: Passwords should not be stored in plain text
|
||||
role: string;
|
||||
nip: string;
|
||||
full_name: string;
|
||||
phone: string;
|
||||
address: string;
|
||||
@@ -52,7 +51,6 @@
|
||||
{ key: "email", title: "Email" },
|
||||
{ key: "password", title: "Password" },
|
||||
{ key: "role", title: "Role" },
|
||||
{ key: "nip", title: "NIP" },
|
||||
{ key: "full_name", title: "Full Name" },
|
||||
{ key: "phone", title: "Phone" },
|
||||
{ key: "address", title: "Address" },
|
||||
@@ -179,10 +177,7 @@
|
||||
const requiredFields = [
|
||||
"email",
|
||||
"role",
|
||||
"nip",
|
||||
"full_name",
|
||||
"phone",
|
||||
"address",
|
||||
];
|
||||
|
||||
requiredFields.forEach((field) => {
|
||||
@@ -312,7 +307,6 @@
|
||||
newUser = {
|
||||
email: "",
|
||||
role: "user",
|
||||
nip: "",
|
||||
full_name: "",
|
||||
phone: "",
|
||||
address: "",
|
||||
|
||||
Reference in New Issue
Block a user