Skip to content

Commit

Permalink
fixed "err.response" error2
Browse files Browse the repository at this point in the history
  • Loading branch information
dedanade authored Apr 2, 2021
1 parent 099411f commit aced42f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions embed-js.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ const res = await axios({
} catch (err) {
stopLoadingBtnSpinner(submitButton);
if (err.response) {
alert('error', err.response.data.message);
} else alert('error', `Unable to create order, kindly retry.Thanks`);
alert(err.response.data.message);
} else alert(`Unable to create this order, kindly retry.Thanks`);
};
};

0 comments on commit aced42f

Please sign in to comment.