Skip to content

Commit

Permalink
fix: correct parsing foils
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettOrmsby committed Aug 11, 2023
1 parent 037cd50 commit 56ba0ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 0 additions & 5 deletions src/components/DeckTagger.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@
</template>
</Button>
</div>

<Button label="Export Deck" @click="emit('complete')" />
</div>
</template>

Expand All @@ -90,9 +88,6 @@ import NextIcon from "./icons/NextIcon.vue";
import store, { settings } from "@/lib/store";
import { computed } from "vue";
import type { DeckCard, ScryfallCard } from "@/lib/types";
const emit = defineEmits<{
complete: [];
}>();
// TODO: sort the deck into instants, creatures and such before
/*
Expand Down
6 changes: 3 additions & 3 deletions src/components/EnterDeck.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ const isLoading = ref(false);
const errorMessages = ref<string[]>([]);
/*
* Present a warning if the tags of the deck were edited before entering a new deck
*/
* Present a warning if the tags of the deck were edited before entering a new deck
*/
const checkConfirmLoadDeck = async () => {
if (store.isTagsEdited) {
confirm.require({
Expand Down Expand Up @@ -239,7 +239,7 @@ const deckToJson = (deck: string): { cards: DeckCard[]; errors: number[] } => {
name: matches[2].trim(),
set: matches[3].trim(),
collectorNumber: matches[4].trim(),
isFoil: matches[5] === null ? false : true,
isFoil: matches[5] === undefined ? false : true,
globalTags: globalTags,
deckSpecificTags: deckSpecificTags
});
Expand Down

0 comments on commit 56ba0ac

Please sign in to comment.