diff --git a/src/data/layers/prestige.tsx b/src/data/layers/prestige.tsx index 0dfdaff..12f2da3 100644 --- a/src/data/layers/prestige.tsx +++ b/src/data/layers/prestige.tsx @@ -13,8 +13,8 @@ import { DecimalSource } from "util/bignum"; import { render } from "util/vue"; import { createLayerTreeNode, createResetButton } from "../common"; -const layer = createLayer(() => { - const id = "p"; +const id = "p"; +const layer = createLayer(id, () => { const name = "Prestige"; const color = "#4BDC13"; const points = createResource(0, "prestige points"); @@ -43,7 +43,6 @@ const layer = createLayer(() => { })); return { - id, name, color, points, diff --git a/src/data/projEntry.tsx b/src/data/projEntry.tsx index c004a87..aa10cd7 100644 --- a/src/data/projEntry.tsx +++ b/src/data/projEntry.tsx @@ -13,7 +13,7 @@ import prestige from "./layers/prestige"; /** * @hidden */ -export const main = createLayer(() => { +export const main = createLayer("main", () => { const points = createResource(10); const best = trackBest(points); const total = trackTotal(points); @@ -40,7 +40,6 @@ export const main = createLayer(() => { })) as GenericTree; return { - id: "main", name: "Tree", links: tree.links, display: jsx(() => (