Skip to content

Commit

Permalink
fix(iosApp): use the new type for partners call from repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
GerardPaligot committed Nov 12, 2024
1 parent 0211dbc commit a481b7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iosApp/iosApp/extensions/PartnerRepositoryExt.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import SharedDi
import KMPNativeCoroutinesCore

extension PartnerRepository {
func partners() -> NativeFlow<PartnerGroupsUi, Error, KotlinUnit> {
func partners() -> NativeFlow<PartnersActivitiesUi, Error, KotlinUnit> {
PartnerRepositoryNativeKt.partners(self)
}

Expand Down
2 changes: 1 addition & 1 deletion iosApp/iosApp/screens/partners/PartnersViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class PartnersViewModel: ObservableObject {
do {
let stream = asyncSequence(for: repository.partners())
for try await partners in stream {
self.uiState = PartnersUiState.success(partners)
self.uiState = PartnersUiState.success(partners.partners)
}
} catch {
self.uiState = PartnersUiState.failure
Expand Down

0 comments on commit a481b7c

Please sign in to comment.