Skip to content

Commit

Permalink
compare against url instead
Browse files Browse the repository at this point in the history
  • Loading branch information
brindy committed Nov 7, 2024
1 parent bd85257 commit 6329573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DuckDuckGo/AutocompleteViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class AutocompleteViewController: UIHostingController<AutocompleteView> {
private lazy var openTabs: [BrowserTab] = {
tabsModel.tabs.compactMap {
guard let url = $0.link?.url,
tabsModel.currentTab != $0
tabsModel.currentTab?.link?.url != $0.link?.url
else { return nil }

return OpenTab(title: $0.link?.displayTitle ?? "", url: url)
Expand Down

0 comments on commit 6329573

Please sign in to comment.