Skip to content

Commit

Permalink
[PWN-8912] Remember lastChosenCountry on second registration step for…
Browse files Browse the repository at this point in the history
… bank transfer info sheet
  • Loading branch information
Elizaveta Semenova committed Jul 11, 2023
1 parent 432246c commit ba09eab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ final class StrigaRegistrationSecondStepViewModel: BaseViewModel, ObservableObje
.assignWeak(to: \.country, on: self)
.store(in: &subscriptions)

$selectedCountry
.assignWeak(to: \.lastChosenCountry, on: self)
.store(in: &subscriptions)

$selectedIndustry
.map { $0?.wholeName ?? "" }
.assignWeak(to: \.occupationIndustry, on: self)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ private extension HomeEmptyViewModel {
func bindBankTransfer() {
bankTransferService.state
.filter { $0.value.userId != nil && $0.value.mobileVerified }
.receive(on: RunLoop.main)
.compactMap { [weak self] value -> HomeBannerParameters? in
guard let self else { return nil }

Expand Down

0 comments on commit ba09eab

Please sign in to comment.