diff options
| author | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-08-13 23:13:56 -0400 |
|---|---|---|
| committer | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-08-13 23:13:56 -0400 |
| commit | fe125c5deb979d753d8b903ce6cdeb968e1c5f46 (patch) | |
| tree | 079474a83ab36a1cd2566b0528362288dbbbeba9 /src/actions/firebaseStorage.js | |
| parent | b1d481ee51e39734a9f10b14d5bc907d17c2afd0 (diff) | |
Attempting to fix issue with building and serving. I believe it was a semicolon I missed in the actions of the app.js.
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 1ccf583..af114f1 100644 --- a/src/actions/firebaseStorage.js +++ b/src/actions/firebaseStorage.js @@ -1,12 +1,12 @@ -import { firefireStorage } from '../firebase.js'; +import { storage } from '../firebase.js'; export const UPDATE_PICTURE = 'UPDATE_PICTURE'; export const uploadPicture = (file, uploader) => (dispatch, getState) => { if(file) { - var fireStorageRef = fireStorage.ref('requests/' + getState().firebaseAuth.uid + '/' + file.name); + var storageRef = storage.ref('requests/' + getState().firebaseAuth.uid + '/' + file.name); - var task = fireStorageRef.put(file); + var task = storageRef.put(file); task.on('state_changed', function(snapshot) { var percentage = (snapshot.bytesTransferred / |
