From d67003ac484a9a34f6bfdc6b9ce4913e12e997de Mon Sep 17 00:00:00 2001 From: JHawk0224 Date: Sun, 17 Mar 2024 13:43:58 -0400 Subject: [PATCH] Fix navigation warning when sending interest --- Gemfile.lock | 1 + PennMobile/Subletting/SubletInterestForm.swift | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index fd5fff90..697542f1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -276,6 +276,7 @@ GEM PLATFORMS universal-darwin-21 universal-darwin-22 + universal-darwin-23 x86_64-darwin-19 x86_64-linux diff --git a/PennMobile/Subletting/SubletInterestForm.swift b/PennMobile/Subletting/SubletInterestForm.swift index 90409e03..500e2961 100644 --- a/PennMobile/Subletting/SubletInterestForm.swift +++ b/PennMobile/Subletting/SubletInterestForm.swift @@ -53,7 +53,7 @@ struct SubletInterestForm: View { message: "The renter will reach out to you if interested.", button1: "See Applied", action1: { - navigationManager.path.removeAll() + navigationManager.path.removeLast(navigationManager.path.contains(SublettingPage.myActivity(.saved)) ? 3 : 2) navigationManager.path.append(SublettingPage.myActivity(.applied)) }, button2: "Keep Browsing",