remove logs, fixes

This commit is contained in:
Tom
2023-05-09 22:00:02 +02:00
parent 76d32ab46e
commit 762dec840d
2 changed files with 9 additions and 6 deletions
-3
View File
@@ -44,12 +44,9 @@ const useStateString = (clients) => {
// capitalize first letter
if (stateString) {
stateString = stateString.charAt(0).toUpperCase() + stateString.slice(1)
console.log("first log:", stateString);
}
// if string is empty, return undefined instead
console.log("second log:", stateString);
return stateString === '' ? undefined : stateString
}, [clients])
}