From 49c273e05692ca43153a45ddff2108005da77315 Mon Sep 17 00:00:00 2001 From: Nathan Mattes Date: Thu, 20 Jul 2023 11:49:47 +0200 Subject: [PATCH] Increment number of errors by one (#898) --- .../View/HomeTimelineNavigationBarTitleViewModel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mastodon/Scene/HomeTimeline/View/HomeTimelineNavigationBarTitleViewModel.swift b/Mastodon/Scene/HomeTimeline/View/HomeTimelineNavigationBarTitleViewModel.swift index 79f568edf..9862d7e0d 100644 --- a/Mastodon/Scene/HomeTimeline/View/HomeTimelineNavigationBarTitleViewModel.swift +++ b/Mastodon/Scene/HomeTimeline/View/HomeTimelineNavigationBarTitleViewModel.swift @@ -37,7 +37,7 @@ final class HomeTimelineNavigationBarTitleViewModel { .receive(on: DispatchQueue.main) .sink { [weak self] _ in guard let self = self else { return } - self.networkErrorCount.value += self.networkErrorCount.value + 1 + self.networkErrorCount.value = self.networkErrorCount.value + 1 } .store(in: &disposeBag)