summaryrefslogtreecommitdiff
path: root/webapp/src
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/src')
-rw-r--r--webapp/src/components/table.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/webapp/src/components/table.rs b/webapp/src/components/table.rs
index 6ccb9d1..e1ec1a1 100644
--- a/webapp/src/components/table.rs
+++ b/webapp/src/components/table.rs
@@ -187,7 +187,9 @@ pub fn playing_view(
</div>
<div class="previous-trick">
<p>{"Last trick"}</p>
- <TrickInPlay trick={playing.previous_trick.clone()}/>
+ if let Some(previous_trick) = &playing.previous_trick {
+ <TrickInPlay trick={previous_trick.clone()}/>
+ }
</div>
</div>
</div>