Closed ramasilveyra closed 6 years ago
This is wrong. I was making the assumption that conn
is a string. It can be the instance of a class like (conn.toLowerCase()
can return undefined
):
class Something {
constructor(something) {
this.something = something;
}
toLowerCase() {
if (this.something) {
return this.something.toLowerCase();
}
return undefined;
}
}
Also React just throws if conn
is not defined, and we are doing the same.
Bug:
Expected: