Skip to content

Commit

Permalink
Refactor FXIOS-10693 - Optimize showMenuWarningBadge Toolbar Action…
Browse files Browse the repository at this point in the history
… dispatch (#23373)
  • Loading branch information
PARAIPAN9 authored Nov 25, 2024
1 parent ba2ebd4 commit 0a32b73
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,13 @@ class BrowserViewController: UIViewController,
let showWarningBadge = isActionNeeded

if isToolbarRefactorEnabled {
let shouldShowWarningBadge = store.state.screenState(
ToolbarState.self,
for: .toolbar,
window: windowUUID
)?.showMenuWarningBadge

guard showWarningBadge != shouldShowWarningBadge else { return }
let action = ToolbarAction(
showMenuWarningBadge: showWarningBadge,
windowUUID: windowUUID,
Expand Down

0 comments on commit 0a32b73

Please sign in to comment.