B2B-30: fix typos, remove debug console
This commit is contained in:
@@ -53,7 +53,7 @@ export function AdminCreateCompanyDialog(props: React.PropsWithChildren) {
|
||||
const error = await createCompanyAccountAction(data);
|
||||
|
||||
if (!error) {
|
||||
toast.success('Company creates successfully');
|
||||
toast.success('Company created successfully');
|
||||
form.reset();
|
||||
|
||||
setOpen(false);
|
||||
|
||||
@@ -58,7 +58,7 @@ export function AdminCreateUserDialog(props: React.PropsWithChildren) {
|
||||
const result = await createUserAction(data);
|
||||
|
||||
if (result.success) {
|
||||
toast.success('User creates successfully');
|
||||
toast.success('User created successfully');
|
||||
form.reset();
|
||||
|
||||
setOpen(false);
|
||||
|
||||
@@ -25,7 +25,6 @@ export const CompanyNameSchema = z
|
||||
.max(50)
|
||||
.refine(
|
||||
(name) => {
|
||||
console.log(name);
|
||||
return !SPECIAL_CHARACTERS_REGEX.test(name);
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user