Adjusted camera stack and app reducer.
This commit is contained in:
@@ -2,6 +2,7 @@ import AppActionTypes from "./app.types";
|
||||
|
||||
const INITIAL_STATE = {
|
||||
cameraJobId: null,
|
||||
cameraJob: null,
|
||||
documentUploadInProgress: null,
|
||||
documentUploadError: null,
|
||||
};
|
||||
@@ -13,6 +14,11 @@ const appReducer = (state = INITIAL_STATE, action) => {
|
||||
...state,
|
||||
cameraJobId: action.payload,
|
||||
};
|
||||
case AppActionTypes.SET_CAMERA_JOB:
|
||||
return {
|
||||
...state,
|
||||
cameraJob: action.payload,
|
||||
};
|
||||
case AppActionTypes.DOCUMENT_UPLOAD_START:
|
||||
return {
|
||||
...state,
|
||||
|
||||
Reference in New Issue
Block a user