We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea83e16 commit 80ac065Copy full SHA for 80ac065
1 file changed
app/src/main/java/com/amrdeveloper/linkhub/ui/folder/FolderScreen.kt
@@ -111,14 +111,14 @@ fun FolderScreen(
111
OutlinedTextField(
112
value = folderName,
113
onValueChange = {
114
- folderName = it.trim()
115
- folder.name = folderName
116
- if (folderName.isEmpty()) {
+ folderName = it
+ folder.name = folderName.trim()
+ if (folder.name.isEmpty()) {
117
folderNameErrorMessage = "Name can't be empty"
118
return@OutlinedTextField
119
}
120
121
- if (folderName.length < 3) {
+ if (folder.name.length < 3) {
122
folderNameErrorMessage = "Folder name can't be less than 3 characters"
123
124
0 commit comments