definig success and error callbacks for every private axios request

This commit is contained in:
Delucse
2020-12-11 14:35:24 +01:00
parent 1821ac4e40
commit 4f002d8694
10 changed files with 179 additions and 78 deletions
+1 -2
View File
@@ -254,7 +254,6 @@ export const resetTutorial = () => (dispatch, getState) => {
dispatch(tutorialBadge(''));
var steps = [
{
id: 1,
type: 'instruction',
headline: '',
text: '',
@@ -282,7 +281,7 @@ export const readJSON = (json) => (dispatch, getState) => {
// accept only valid attributes
var steps = json.steps.map((step, i) => {
var object = {
// id: step.id,
_id: step._id,
type: step.type,
headline: step.headline,
text: step.text