Browse Source

A small fix which I forgot to commit

Irina Smokvarska 3 năm trước cách đây
mục cha
commit
ed3d243022

+ 1 - 1
LiveLikeGiphyChallenge/LiveLikeGiphyChallenge/MainScreen/MainViewModel.swift

@@ -26,7 +26,7 @@ final class MainViewModel: ObservableObject {
       if stringValue.isEmpty {
          self?.fetchTrendingData(chunk: self?.chunkCount ?? 0)
       } else {
-        self?.fetchSearchDataBy(string: self!.searchText , chunk: self?.chunkCount ?? 0)
+        self?.fetchSearchDataBy(string: stringValue , chunk: self?.chunkCount ?? 0)
       }
     }
     .store(in: &subscriptions)