Skip to content

Commit

Permalink
only check for this.selected.novice once we know that this.selected i…
Browse files Browse the repository at this point in the history
…s defined
  • Loading branch information
csternagel committed Mar 19, 2024
1 parent 59b8de5 commit 1d50c58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/js/app.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/components/card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<button @click="previous" :disabled="noPrevious()"><icon id="arrow-left" :button="true"></icon></button>
<v-select ref="inputSelected" :options="options" v-model="selected" placeholder="Start typing..."></v-select>
<button @click="next" :disabled="noNext()"><icon id="arrow-right" :button="true"></icon></button>
<v-select v-if="selected.novice" class="power-level" :options="powerLevels()" v-model="powerLevel"></v-select>
<v-select v-if="this.selected && this.selected.novice" class="power-level" :options="powerLevels()" v-model="powerLevel"></v-select>
<button class="remove-card" @click="$emit('dismiss', id)"><icon id="cross" :button="true"></icon></button>
</div>

Expand Down Expand Up @@ -132,7 +132,6 @@
},
powerLevels() {
console.log(this.selected)
if (this.selected && this.selected.novice) {
return this.isMonstrousTrait() ? ["I","II","III"] : ["N","A","M"];
}
Expand Down

0 comments on commit 1d50c58

Please sign in to comment.