corrections

This commit is contained in:
Michiel Crefcoeur
2024-09-16 22:13:30 +02:00
committed by GitHub
parent e1ec0aee69
commit 2f9448dde9
3 changed files with 6 additions and 6 deletions
@@ -125,8 +125,8 @@ export const AddApplication = ({ projectId, projectName }: Props) => {
placeholder="Frontend"
{...field}
onChange={(e) => {
const val = e.target.value?.trim().toLowerCase().replaceAll(" ", "-") || "";
form.setValue("appName", `${slug}-${val}`);
const val = e.target.value?.trim() || "";
form.setValue("appName", `${slug}-${val.toLowerCase().replaceAll(" ", "-")}`);
field.onChange(val);
}}
/>