|
@@ -16,7 +16,7 @@ export default function (state = initialState.user, { type, error, payload: data
|
|
|
case types.SIGN_UP_REQUEST: {
|
|
|
return {
|
|
|
...state,
|
|
|
- gettingUser: true,
|
|
|
+ isFetching: true,
|
|
|
error: null,
|
|
|
data: null
|
|
|
}
|
|
@@ -24,7 +24,7 @@ export default function (state = initialState.user, { type, error, payload: data
|
|
|
case types.SIGN_UP_REQUEST_SUCCESS: {
|
|
|
return {
|
|
|
...state,
|
|
|
- gettingUser: false,
|
|
|
+ isFetching: false,
|
|
|
error: null,
|
|
|
data
|
|
|
}
|
|
@@ -32,7 +32,7 @@ export default function (state = initialState.user, { type, error, payload: data
|
|
|
case types.SIGN_UP_REQUEST_FAILURE: {
|
|
|
return {
|
|
|
...state,
|
|
|
- gettingUser: false,
|
|
|
+ isFetching: false,
|
|
|
data: null,
|
|
|
error
|
|
|
}
|
|
@@ -43,7 +43,7 @@ export default function (state = initialState.user, { type, error, payload: data
|
|
|
case types.SIGN_IN_REQUEST: {
|
|
|
return {
|
|
|
...state,
|
|
|
- gettingUser: true,
|
|
|
+ isFetching: true,
|
|
|
error: null,
|
|
|
data: null
|
|
|
}
|
|
@@ -51,7 +51,7 @@ export default function (state = initialState.user, { type, error, payload: data
|
|
|
case types.SIGN_IN_REQUEST_SUCCESS: {
|
|
|
return {
|
|
|
...state,
|
|
|
- gettingUser: false,
|
|
|
+ isFetching: false,
|
|
|
error: null,
|
|
|
data
|
|
|
}
|
|
@@ -59,7 +59,7 @@ export default function (state = initialState.user, { type, error, payload: data
|
|
|
case types.SIGN_IN_REQUEST_FAILURE: {
|
|
|
return {
|
|
|
...state,
|
|
|
- gettingUser: false,
|
|
|
+ isFetching: false,
|
|
|
data: null,
|
|
|
error
|
|
|
}
|