Skip to content

Commit

Permalink
Merge pull request #19 from Real-Dev-Squad/develop
Browse files Browse the repository at this point in the history
Develop into main
  • Loading branch information
ankushdharkar authored Jan 24, 2021
2 parents 30510aa + 411eff2 commit 9ad1aad
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/controllers/signup.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,12 @@ export default class SignupController extends Controller {
},
credentials: 'include',
});
const data = await response.json();
const { statusCode } = data;
if (statusCode === 204) {
window.open('https://www.realdevsquad.com/goto', '_self');

const { status } = response;
if (status === 204) {
window.open('https://realdevsquad.com/goto', '_self');
} else {
alert('Something went wrong');
alert('Something went wrong. Please check console errors.');
}
} catch (error) {
console.error('Error : ', error);
Expand Down

0 comments on commit 9ad1aad

Please sign in to comment.