We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53093d6 commit c8ef5f1Copy full SHA for c8ef5f1
1 file changed
src/data/index.ts
@@ -87,10 +87,10 @@ export default new Vuex.Store({
87
let resData: any;
88
const contentType = response.headers.get("content-type");
89
const hasJson = contentType?.indexOf("application/json");
90
- if (hasJson && hasJson !== -1) {
91
- console.log(contentType?.indexOf("application/json"));
92
+ if (hasJson! > -1) {
93
resData = await response?.json();
+
94
if (resData?.message) {
95
commit("ADD_TOAST", {
96
message: resData.message,
0 commit comments