Explorar o código

A small fix which I forgot to commit

Irina Smokvarska %!s(int64=3) %!d(string=hai) anos
pai
achega
ed3d243022

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

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