fixed CustomName whitespace

This commit is contained in:
Elmar Kresse
2023-09-22 16:31:12 +02:00
parent 023cca3105
commit 334dd406a7
3 changed files with 7 additions and 7 deletions

View File

@@ -22,7 +22,7 @@ func GetModulesForCourseDistinct(app *pocketbase.PocketBase, c echo.Context, cou
func replaceEmptyEntryInStringArray(modules []string, replacement string) {
//replace empty functions with "Sonderveranstaltungen"
for i, module := range modules {
if functions.CheckIfOnlyWhitespace(module) {
if functions.OnlyWhitespace(module) {
modules[i] = replacement
}
}
@@ -34,7 +34,7 @@ func replaceEmptyEntry(modules []struct {
}, replacement string) {
//replace empty functions with "Sonderveranstaltungen"
for i, module := range modules {
if functions.CheckIfOnlyWhitespace(module.Name) {
if functions.OnlyWhitespace(module.Name) {
modules[i].Name = replacement
}
}