Skip to content

Commit

Permalink
Merge branch 'ds/issue49' into 'develop'
Browse files Browse the repository at this point in the history
Fix: Appropriate message display on register validation

See merge request PBSA/dapps/NFT-store!10
  • Loading branch information
RoshanSyed committed Jun 4, 2021
2 parents 9a872a6 + 6640f68 commit bc89a06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/javascripts/expressCart.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ $(document).ready(function (){
}
})
.done(function(msg){
showNotification(msg.message, 'success', false, '/');
showNotification(msg.message, 'success', true, '/');
})
.fail(function(msg){
showNotification(msg.responseJSON.message, 'danger');
showNotification(msg.responseJSON[0]?.message || msg.responseJSON?.message, 'danger');
});
}
});
Expand Down

0 comments on commit bc89a06

Please sign in to comment.