From f1eed12e9796138ddba7de410260feb47b3cad85 Mon Sep 17 00:00:00 2001 From: dblythy Date: Wed, 25 Jan 2023 15:14:40 +1100 Subject: [PATCH 1/2] fix: syntax error on missing credentials --- src/login/Login.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/login/Login.js b/src/login/Login.js index 79f4de1b23..bbb986332d 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}`; + /* */ } } From 7903571f6656534e754f787d6f5b1eee166b6b83 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 29 Jan 2023 13:53:14 +1100 Subject: [PATCH 2/2] Update src/login/Login.js Co-authored-by: Manuel <5673677+mtrezza@users.noreply.github.com> --- src/login/Login.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/login/Login.js b/src/login/Login.js index 2267eec020..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 = this.errors ?? `Error: ${JSON.stringify(e)}`; } }