Skip to content

Commit

Permalink
Merge pull request #966 from hypersign-protocol/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Pratap2018 authored Feb 18, 2022
2 parents 0f86c63 + 5b3f194 commit 41226aa
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/views/Invitation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,20 @@ methods:{
method: "GET",
});
if(resp.status===400){
const errorMsg=await resp.json();
let errorMsg=await resp.json();
if(errorMsg.Error){
return this.$swal.fire({
position: 'center',
icon: 'warning',
title: `${errorMsg.Error}`,
showConfirmButton: false,
timer: 5000
})
}else
return this.$swal.fire({
position: 'center',
icon: 'warning',
title: `${errorMsg}`,
title: `${errorMsg.message}`,
showConfirmButton: false,
timer: 5000
})
Expand Down

0 comments on commit 41226aa

Please sign in to comment.