diff --git a/client/src/js/components/App.tsx b/client/src/js/components/App.tsx
index f248af1..ddf01ee 100644
--- a/client/src/js/components/App.tsx
+++ b/client/src/js/components/App.tsx
@@ -19,8 +19,11 @@ export function App({ children }: PropsWithChildren<{}>) {
/* allowlist: param keys acceptable as cookie keys */
const allowlist = ["projectId"];
Object.entries(params).forEach(([key, value]) => {
- if (allowlist.includes(key) && cookies[key] !== value &&
- /^[0-9A-Za-z]+$/.test(String(value))) {
+ if (
+ allowlist.includes(key) &&
+ cookies[key] !== value &&
+ /^[0-9A-Za-z]+$/.test(String(value))
+ ) {
document.cookie = `${key}=${value}; path=/`;
}
});
diff --git a/client/src/js/main/main.tsx b/client/src/js/main/main.tsx
index a73512f..01dd986 100644
--- a/client/src/js/main/main.tsx
+++ b/client/src/js/main/main.tsx
@@ -7,21 +7,21 @@ import { Task } from "~/components/Task";
(function () {
const components = {
- "Task": () => (
+ Task: () => (
),
- "Tasks": () => (
+ Tasks: () => (
),
- "Projects": () => (
+ Projects: () => (
- )
+ ),
};
const ents = Object.entries(components);
for (let i = 0; i < ents.length; i++) {