Skip to content

Commit

Permalink
Fix enableNewUI condition
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick11514 committed Nov 12, 2024
1 parent 66d01ba commit a8eb0db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const getCookies = () => {
};

const cookies = getCookies();
const enableNewUI = Object.keys(cookies) && cookies['newUI'] != 0;
const enableNewUI = Object.keys(cookies).includes('newUI') && cookies['newUI'] != 0;

createElement('app', App);
createElement('submit-sources', TaskDetail);
Expand Down

0 comments on commit a8eb0db

Please sign in to comment.