diff options
| author | Christian Cleberg <[email protected]> | 2026-03-19 16:59:16 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-03-19 16:59:16 -0500 |
| commit | b82bbeeea48ad27832a355c2a41408559c411104 (patch) | |
| tree | 0af45101300c75970471573b09f878a1b3763b38 /Hutch/Views/Tickets/TicketListViewModel.swift | |
| parent | 9065ef6e92245a44390e336cc1ae515ae706cdd7 (diff) | |
| download | hutch-b82bbeeea48ad27832a355c2a41408559c411104.tar.gz hutch-b82bbeeea48ad27832a355c2a41408559c411104.tar.bz2 hutch-b82bbeeea48ad27832a355c2a41408559c411104.zip | |
v2.1: bundled polish and fixes
Diffstat (limited to 'Hutch/Views/Tickets/TicketListViewModel.swift')
| -rw-r--r-- | Hutch/Views/Tickets/TicketListViewModel.swift | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Hutch/Views/Tickets/TicketListViewModel.swift b/Hutch/Views/Tickets/TicketListViewModel.swift index 916037e..f3c9416 100644 --- a/Hutch/Views/Tickets/TicketListViewModel.swift +++ b/Hutch/Views/Tickets/TicketListViewModel.swift @@ -121,7 +121,7 @@ final class TicketListViewModel { cursor = page.cursor hasMore = page.cursor != nil } catch { - self.error = error.localizedDescription + self.error = error.userFacingMessage } isLoading = false @@ -143,7 +143,7 @@ final class TicketListViewModel { cursor = page.cursor hasMore = page.cursor != nil } catch { - self.error = error.localizedDescription + self.error = error.userFacingMessage } isLoadingMore = false @@ -185,7 +185,7 @@ final class TicketListViewModel { tickets.insert(ticket, at: 0) return ticket } catch { - self.error = "Couldn’t create the ticket. \(error.localizedDescription)" + self.error = "Couldn’t create the ticket. \(error.userFacingMessage)" return nil } } |
