From 2ea02124a564c54f20ea530b56cd9f932212f9f3 Mon Sep 17 00:00:00 2001 From: Michael Foiani Date: Mon, 13 Aug 2018 23:35:00 -0400 Subject: Tried many things to try to fix the glitch. I was successful. Yay! 5 hours of debugging a bug is finally over. :) --- src/reducers/firebaseStorage.js | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) (limited to 'src/reducers') diff --git a/src/reducers/firebaseStorage.js b/src/reducers/firebaseStorage.js index 8ec702e..0c3921a 100644 --- a/src/reducers/firebaseStorage.js +++ b/src/reducers/firebaseStorage.js @@ -8,22 +8,19 @@ Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ -import { - UPDATE_PICTURE -} -from '../actions/firebaseStorage.js'; +import { UPDATE_PICTURE } from '../actions/firebaseStorage.js'; - const firebaseStorage = (state = {pictureName: "", uploaded: false}, action) => { - switch (action.type) { - case UPDATE_PICTURE: - return { - pictureName: action.name, - uploaded: action.uploaded - }; - break; +const firebaseStorage = (state = {pictureName: "", uploaded: false}, action) => { + switch (action.type) { + case UPDATE_PICTURE: + return { + pictureName: action.name, + uploaded: action.uploaded + }; + break; - default: - return state; + default: + return state; } }; -- cgit v1.2.3-70-g09d2