diff --git a/src/login/Login.js b/src/login/Login.js index 135f5b0079..a78a19e0ee 100644 --- a/src/login/Login.js +++ b/src/login/Login.js @@ -24,7 +24,7 @@ export default class Login extends React.Component { this.errors = json.text otpLength = json.otpLength; } catch (e) { - this.errors = `could not pass error json: ${e}`; + this.errors = this.errors ?? `Error: ${JSON.stringify(e)}`; } }