Skip to content

Commit 02b260c

Browse files
committed
Uplift of #29338 (squashed) to beta
1 parent 1ab2a6d commit 02b260c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/brave-ios/Sources/Brave/Frontend/Browser/Search/SearchViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ public class SearchViewController: UIViewController, LoaderListener {
725725
return
726726
}
727727

728-
let offset = dataSource.isPrivate ? 0 : 1 // offset for the Leo button
728+
let offset = dataSource.isAIChatAvailable ? 1 : 0 // offset for the Leo button
729729
let engine = dataSource.quickSearchEngines[index - offset]
730730
let localSearchQuery = dataSource.searchQuery.lowercased()
731731
guard let url = engine.searchURLForQuery(localSearchQuery) else {

0 commit comments

Comments
 (0)