mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-17 05:11:19 +00:00
Check that error.info exists (#3865)
GitOrigin-RevId: 83c575cc3b94d9d6564d4a2919f81e7b47a116cc
This commit is contained in:
parent
8227e68aca
commit
a2be1f8981
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ const InstitutionsAPI = {
|
|||
},
|
||||
function(error, body) {
|
||||
if (error) {
|
||||
if (error.info.statusCode === 422) {
|
||||
if (error.info && error.info.statusCode === 422) {
|
||||
return callback(
|
||||
new InvalidInstitutionalEmailError(error.message).withCause(error)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue