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 - @dirathea
  • Loading branch information
prescottprue authored Jan 1, 2019
2 parents b10282e + 70d9a4a commit a424cbe
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 function 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 a424cbe

Please sign in to comment.