Skip to content

Commit

Permalink
Merge pull request #514 from pennlabs/subletting-bugfix
Browse files Browse the repository at this point in the history
Fix navigation warning (the yellow warning screen) when sending interest
  • Loading branch information
JHawk0224 authored Mar 20, 2024
2 parents 8853853 + d67003a commit 7bf0414
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ GEM
PLATFORMS
universal-darwin-21
universal-darwin-22
universal-darwin-23
x86_64-darwin-19
x86_64-linux

Expand Down
2 changes: 1 addition & 1 deletion PennMobile/Subletting/SubletInterestForm.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7bf0414

Please sign in to comment.