Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimillian committed May 17, 2021
1 parent cf2e496 commit 8659528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RedditOs/Features/Subreddit/SubredditViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class SubredditViewModel: ObservableObject {
.map{ $0.data?.children.map{ $0.data }}
.sink(receiveValue: { [weak self] results in
self?.isSearchLoading = false
if self?.searchResults?.last != nil, let results = results {
if after != nil, let results = results {
self?.searchResults?.append(contentsOf: results)
} else {
self?.searchResults = results
Expand Down

0 comments on commit 8659528

Please sign in to comment.