Skip to content

Commit

Permalink
fix(storage): support only firestore when calling upload and writing …
Browse files Browse the repository at this point in the history
…to db - #601

Co-Authored-By: Aldira Putra Raharja <[email protected]>
  • Loading branch information
Scott Prue and dirathea committed Jan 1, 2019
1 parent 111f739 commit 5074288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/actions/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const uploadFile = (dispatch, firebase, config) => {

return uploadPromise()
.then(uploadTaskSnapshot => {
if (!dbPath || !firebase.database) {
if (!dbPath || (!firebase.database && !firebase.firestore)) {
dispatch({
type: FILE_UPLOAD_COMPLETE,
meta: { ...config, filename },
Expand Down

0 comments on commit 5074288

Please sign in to comment.