fix sense of my turn

This commit is contained in:
Branden J Brown 2024-02-03 14:16:54 -06:00
parent 2cb683eafb
commit 668ea105f9
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ 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');
const dealerTarget = computed(() => props.dealer ? 'YOURSELF' : 'THE DEALER'); const dealerTarget = computed(() => props.dealer ? 'YOURSELF' : 'THE DEALER');