Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Fix: Fixed field should not allow only whitespace values issue #2318

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ export const DefaultPrefix: React.FC<Props> = ({ keyAuth }) => {
},
});
async function onSubmit(values: z.infer<typeof formSchema>) {
if (values.defaultPrefix.trim() === '') {
return toast.error("Default prefix cannot be empty or contain only spaces.");
}
if (values.defaultPrefix.length > 8) {
return toast.error("Default prefix is too long, maximum length is 8 characters.");
}
Expand Down
Loading