fix sense of game over

This commit is contained in:
Branden J Brown 2024-02-03 14:17:51 -06:00
parent 668ea105f9
commit 8c38174dad
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ export interface Emits {
const props = defineProps<Props>(); const props = defineProps<Props>();
const emit = defineEmits<Emits>(); const emit = defineEmits<Emits>();
const gameOver = computed(() => props.game.winner == null); const gameOver = computed(() => props.game.winner != null);
const myTurn = computed(() => !gameOver.value && props.dealer === props.game.dealer); const myTurn = computed(() => !gameOver.value && props.dealer === props.game.dealer);
const currentTurn = computed(() => props.game.dealer ? 'DEALER' : 'CHALLENGER'); const currentTurn = computed(() => props.game.dealer ? 'DEALER' : 'CHALLENGER');