From b3dbdd3280494b239f0e7c5b62109e5b90280dd5 Mon Sep 17 00:00:00 2001 From: William Moore Date: Sat, 1 Jul 2023 12:41:03 -0500 Subject: [PATCH] Update to allow for local storage and signify reserve or cantrip magic --- src/Place.ts | 2 +- src/Spell.ts | 2 +- src/SpellCard.ts | 4 ++-- src/SpellList.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Place.ts b/src/Place.ts index 8ee7cc0..dae8a87 100644 --- a/src/Place.ts +++ b/src/Place.ts @@ -62,7 +62,7 @@ export class Place extends LitElement {

${this.location}

- ${this.spells.sort(spellSort).map(spell => spell ? html`` : '')} + ${this.spells.sort(spellSort).map(spell => spell ? html`` : '')}
`; diff --git a/src/Spell.ts b/src/Spell.ts index 0e555f3..76038b4 100644 --- a/src/Spell.ts +++ b/src/Spell.ts @@ -28,4 +28,4 @@ export const spellSort = (a: Spell, b: Spell) => { } return compareValue; -} \ No newline at end of file +}; diff --git a/src/SpellCard.ts b/src/SpellCard.ts index f528814..6874762 100644 --- a/src/SpellCard.ts +++ b/src/SpellCard.ts @@ -10,8 +10,8 @@ export class SpellCard extends LitElement { color: string = ''; category: string = ''; description: string = ''; - cantripMagic: boolean | null = false; - reserveMagic: boolean | null = false; + cantripMagic: boolean = false; + reserveMagic: boolean = false; @property() spellRemover: any = null; @property() selectSpell: any = null; diff --git a/src/SpellList.ts b/src/SpellList.ts index 35a27cd..aadaea6 100644 --- a/src/SpellList.ts +++ b/src/SpellList.ts @@ -280,7 +280,7 @@ export class SpellList extends LitElement {

Spells

- ${this.filteredSpells.sort(spellSort).map(spell => html``)} + ${this.filteredSpells.sort(spellSort).map(spell => html``)}
`; }