fix sense of game over
This commit is contained in:
parent
668ea105f9
commit
8c38174dad
@ -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');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user