Merge pull request #1099 from mastodon/898-that-escelated-quickly

Increment number of errors only by one
This commit is contained in:
Nathan Mattes 2023-07-23 13:11:21 +02:00 committed by GitHub
commit 3909675cd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)