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);
|
const error = await createCompanyAccountAction(data);
|
||||||
|
|
||||||
if (!error) {
|
if (!error) {
|
||||||
toast.success('Company creates successfully');
|
toast.success('Company created successfully');
|
||||||
form.reset();
|
form.reset();
|
||||||
|
|
||||||
setOpen(false);
|
setOpen(false);
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ export function AdminCreateUserDialog(props: React.PropsWithChildren) {
|
|||||||
const result = await createUserAction(data);
|
const result = await createUserAction(data);
|
||||||
|
|
||||||
if (result.success) {
|
if (result.success) {
|
||||||
toast.success('User creates successfully');
|
toast.success('User created successfully');
|
||||||
form.reset();
|
form.reset();
|
||||||
|
|
||||||
setOpen(false);
|
setOpen(false);
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ export const CompanyNameSchema = z
|
|||||||
.max(50)
|
.max(50)
|
||||||
.refine(
|
.refine(
|
||||||
(name) => {
|
(name) => {
|
||||||
console.log(name);
|
|
||||||
return !SPECIAL_CHARACTERS_REGEX.test(name);
|
return !SPECIAL_CHARACTERS_REGEX.test(name);
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user