From 3d00c58eb23e5b258de8f1e11a841fbc2ce4257d Mon Sep 17 00:00:00 2001 From: Raz Date: Fri, 8 Nov 2024 19:58:35 +0100 Subject: [PATCH] update --- PadelClub/Views/Score/FollowUpMatchView.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PadelClub/Views/Score/FollowUpMatchView.swift b/PadelClub/Views/Score/FollowUpMatchView.swift index 9fd6867..0ee7f20 100644 --- a/PadelClub/Views/Score/FollowUpMatchView.swift +++ b/PadelClub/Views/Score/FollowUpMatchView.swift @@ -286,8 +286,10 @@ struct FollowUpMatchView: View { } } .onChange(of: readyMatches) { + dismissWhenPresentFollowUpMatchIsDismissed = true if autoDismiss { - dismissWhenPresentFollowUpMatchIsDismissed = true + dismiss() + } else if readyMatches.isEmpty && matchesLeft.isEmpty { dismiss() } }