diff --git a/src/models/network.js b/src/models/network.js index db2eb60c..de9dfcc9 100644 --- a/src/models/network.js +++ b/src/models/network.js @@ -32,5 +32,7 @@ function prettify(host) { } function capitalize(str) { - return str.charAt(0).toUpperCase() + str.slice(1); + if (typeof str === "string") { + return str.charAt(0).toUpperCase() + str.slice(1); + } }