Skip to content

Commit

Permalink
fixed init variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jzakotnik committed Aug 2, 2021
1 parent edb33ec commit e5ea068
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nextjs/mwe/pages/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function Admin(props) {
console.log("Create links..");
event.preventDefault();
const authid = { admin: uuidv4(), reader: uuidv4() };
const defaultLunchProfile = {
const dayselection = {
mon: true,
tue: true,
wed: true,
Expand All @@ -50,7 +50,7 @@ export default function Admin(props) {

fetch("http://localhost:3000/api/insertData", {
method: "POST",
body: JSON.stringify({ authid, defaultLunchProfile }),
body: JSON.stringify({ authid, dayselection }),
headers: {
"Content-Type": "application/json",
},
Expand Down

0 comments on commit e5ea068

Please sign in to comment.