Closed jeffminsungkim closed 6 years ago
Simply fixed by adding a condition something like this.usernameText != ''
.
However, when the user presses one of the following characters ".", "#", "$", "[", or "]"
from the text input, still throws an error from the browser.
In the browser when the user presses backspace from the start while searching a username, it throws the following error.
Error: Reference.child failed: First argument was an invalid path = "usernames/#". Paths must be non-empty strings and can't contain ".", "#", "$", "[", or "]"