Skip to content

Commit

Permalink
Merge pull request #1099 from mastodon/898-that-escelated-quickly
Browse files Browse the repository at this point in the history
Increment number of errors only by one
  • Loading branch information
zeitschlag authored Jul 23, 2023
2 parents 9699e93 + 49c273e commit 3909675
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 3909675

Please sign in to comment.