diff --git a/Lesson2/step4/templates/login.html b/Lesson2/step4/templates/login.html index a454d42..7f66367 100644 --- a/Lesson2/step4/templates/login.html +++ b/Lesson2/step4/templates/login.html @@ -55,18 +55,16 @@ setTimeout(function() { window.location.href = "/restaurant"; }, 4000); - - - } else if (authResult['error']) { + } + } + }); + } else if (authResult['error']) { console.log('There was an error: ' + authResult['error']); } else { - $('#result').html('Failed to make a server-side call. Check your configuration and console.'); - } - - } - - }); } } + $('#result').html('Failed to make a server-side call. Check your configuration and console.'); + } +}