Skip to content

Commit

Permalink
[PWN-9208] Remove unnecessary method
Browse files Browse the repository at this point in the history
  • Loading branch information
Elizaveta Semenova committed Jul 10, 2023
1 parent a9dbbdd commit 980fc27
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private extension StrigaRegistrationFirstStepViewModel {
}

if let countries = try? await self.countriesService.fetchCountries() {
fetchSaved(placeOfBirth: data.placeOfBirth, countries: countries)
selectedCountryOfBirth = countries.first(where: { $0.alpha3Code.lowercased() == data.placeOfBirth?.lowercased() })
await fetchPhoneNumber(data: data, countries: countries)
}

Expand Down Expand Up @@ -155,14 +155,6 @@ private extension StrigaRegistrationFirstStepViewModel {
}
}

func fetchSaved(placeOfBirth: String?, countries: Countries) {
if let country = countries.first(where: {
$0.alpha3Code.lowercased() == placeOfBirth?.lowercased()
}) {
self.selectedCountryOfBirth = country
}
}

func fetchPhoneNumber(data: StrigaUserDetailsResponse, countries: Countries) async {
let metadataService: WalletMetadataService = Resolver.resolve()
// Web3 phone by default
Expand Down

0 comments on commit 980fc27

Please sign in to comment.