Skip to content

Commit

Permalink
will refac this is next pull req
Browse files Browse the repository at this point in the history
relates to #138
  • Loading branch information
pbywater committed Jul 21, 2017
1 parent d411a4a commit ada9d32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/helpers/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function constructTagList(data) {

// Will change this to storePendingActions in the next pull req - it is refactored to fit several actions
function saveMemoryIdToStorage(id) {
if (localStorage.getItem('toDelete') !== null) {
// Same for the refactoring you suggested below!
const memoriesWaitingToBeRemoved = JSON.parse(localStorage.getItem("toDelete"));
memoriesWaitingToBeRemoved.memories.push(id);
const saveMemoriesToDelete = JSON.stringify(memoriesWaitingToBeRemoved);
Expand Down

0 comments on commit ada9d32

Please sign in to comment.