jeffminsungkim / Ashy

0 stars 0 forks source link

Reference.child failed: First argument was an invalid path #1

Closed jeffminsungkim closed 6 years ago

jeffminsungkim commented 6 years ago

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 "]"

jeffminsungkim commented 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.