refactor: prevent update appName in services

This commit is contained in:
Mauricio Siu
2024-12-21 13:10:34 -06:00
parent 8e5b0988cf
commit 0abf62dd52
8 changed files with 16 additions and 16 deletions

View File

@@ -17,9 +17,9 @@ export const generateAppName = (type: string) => {
export const cleanAppName = (appName?: string) => {
if (!appName) {
return appName;
return appName?.toLowerCase();
}
return appName.trim().replace(/ /g, "-");
return appName.trim().replace(/ /g, "-").toLowerCase();
};
export const buildAppName = (type: string, baseAppName?: string) => {