Skip to content

Commit

Permalink
chore: better logs
Browse files Browse the repository at this point in the history
  • Loading branch information
bodobraegger committed Jul 23, 2024
1 parent 47e427f commit 67b21f7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,11 @@ function App() {

useEffect(() => {
if(data) {
console.log('setting local data');
console.log('setting local data', data);
(data as any[]).forEach((d) => {
let key = Object.keys(d)[0]
localStorage.setItem(`${key}`, JSON.stringify(d[key]))
console.log('set', key)
localStorage.setItem(key, JSON.stringify(d[key]))
if (key.includes(lang)) {
if(key.includes('links')) {
setLinks(d[key]);
Expand Down

0 comments on commit 67b21f7

Please sign in to comment.