diff --git a/redux/photos/photos.sagas.js b/redux/photos/photos.sagas.js index c66f124..09e94ce 100644 --- a/redux/photos/photos.sagas.js +++ b/redux/photos/photos.sagas.js @@ -1,7 +1,11 @@ import * as FileSystem from "expo-file-system"; -import { all, call, delay, put, select, takeLatest } from "redux-saga/effects"; +import { all, call, put, select, takeLatest } from "redux-saga/effects"; import { handleUpload } from "../../util/document-upload.utility"; -import { uploadPhotosFailure, uploadPhotosSuccess } from "./photos.actions"; +import { + uploadPhotosFailure, + uploadPhotosSuccess, + removeAllPhotos, +} from "./photos.actions"; import PhotosActionTypes from "./photos.types"; export function* onRemovePhotos() { @@ -53,7 +57,6 @@ export function* onUploadAllPhotos() { export function* uploadAllPhotosAction() { try { - yield delay(500); const photos = yield select((state) => state.photos.photos); const bodyshop = yield select((state) => state.user.bodyshop); const user = yield select((state) => state.user);