From 54da0337e9aecf251c34d5d6956f1327aaf82f70 Mon Sep 17 00:00:00 2001 From: "Hunter L. Melton" Date: Mon, 8 May 2023 00:15:36 -0700 Subject: [PATCH 1/2] Feature branch initialization --- src/components/BingoDisplay.vue | 20 +++++++++----------- src/store/deck.ts | 7 +++++-- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/components/BingoDisplay.vue b/src/components/BingoDisplay.vue index 7249f9b..3ceba01 100644 --- a/src/components/BingoDisplay.vue +++ b/src/components/BingoDisplay.vue @@ -3,15 +3,11 @@ import { defineComponent } from 'vue'; import { useDeckStore } from '../store/deck'; import { storeToRefs } from 'pinia'; + export default defineComponent({ setup() { - // const currentDeck = ref([]); const store = useDeckStore(); - const { cards } = storeToRefs(store); - - - // This really shouldnt be an :any input for the shuffle function but its the only way it'll let me build function shuffle(deckArray: any) { let currentIndex = deckArray.length, randomIndex; @@ -29,6 +25,7 @@ export default defineComponent({ } return deckArray } + // End Function Declarations return { store, cards, shuffle } }, @@ -38,13 +35,14 @@ export default defineComponent({