Skip to content

Commit

Permalink
update 2
Browse files Browse the repository at this point in the history
  • Loading branch information
OlgaBilynska committed May 30, 2023
1 parent f465a21 commit cdac1d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/03-feedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import throttle from "lodash.throttle";

const STORAGE_KEY = 'feedback-form-state';

const formData = {};
const formData = JSON.parse(localStorage.getItem(STORAGE_KEY)) ?? {};

// if (STORAGE_KEY) {
// const parsedData = JSON.parse(localStorage.getItem(STORAGE_KEY));
// formData.email = parsedData.email;
Expand Down

0 comments on commit cdac1d5

Please sign in to comment.