Skip to content

Commit 503ccbc

Browse files
committed
fix: add catch block to ServerError throwable call
Modifications in login/Login.tsx
1 parent 1668a0f commit 503ccbc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/login/Login.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ export default class Login extends Component<LoginProps, LoginFormState> {
6161
loginList: list,
6262
})
6363
})
64+
.catch(error => {
65+
showError(error)
66+
})
6467
if (typeof Storage !== 'undefined') {
6568
if (localStorage.isDashboardAccessed) {
6669
return

0 commit comments

Comments
 (0)