summaryrefslogtreecommitdiff
path: root/pkg/ui
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/ui')
-rw-r--r--pkg/ui/views/game.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/ui/views/game.go b/pkg/ui/views/game.go
index c09acee..afb81f5 100644
--- a/pkg/ui/views/game.go
+++ b/pkg/ui/views/game.go
@@ -157,7 +157,7 @@ func (m GameModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
func (m GameModel) View() string {
formWidth := getFormWidth(m.width)
- if m.game == nil {
+ if m.game == nil || m.game.Player2 == nil {
return "Loading game..."
}