diff options
| author | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-08-13 22:08:47 -0400 |
|---|---|---|
| committer | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-08-13 22:08:47 -0400 |
| commit | b1d481ee51e39734a9f10b14d5bc907d17c2afd0 (patch) | |
| tree | 3c84725c7cb8411dbc785de0a4bc3b2462359d03 /src/actions/firebaseStorage.js | |
| parent | 717352f8653a71eba003ec33dfa6355463208045 (diff) | |
Trying to fix error with bulding. App works on local host but not on delpoyed and built app.
Diffstat (limited to 'src/actions/firebaseStorage.js')
| -rw-r--r-- | src/actions/firebaseStorage.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/actions/firebaseStorage.js b/src/actions/firebaseStorage.js index af114f1..1ccf583 100644 --- a/src/actions/firebaseStorage.js +++ b/src/actions/firebaseStorage.js @@ -1,12 +1,12 @@ -import { storage } from '../firebase.js'; +import { firefireStorage } from '../firebase.js'; export const UPDATE_PICTURE = 'UPDATE_PICTURE'; export const uploadPicture = (file, uploader) => (dispatch, getState) => { if(file) { - var storageRef = storage.ref('requests/' + getState().firebaseAuth.uid + '/' + file.name); + var fireStorageRef = fireStorage.ref('requests/' + getState().firebaseAuth.uid + '/' + file.name); - var task = storageRef.put(file); + var task = fireStorageRef.put(file); task.on('state_changed', function(snapshot) { var percentage = (snapshot.bytesTransferred / |
