popup_banners: Don't trigger fade out if the banner is not present.

This commit is contained in:
Aman Agrawal
2025-03-17 19:20:12 +05:30
committed by Tim Abbott
parent a903db1ac1
commit db07086b26

View File

@@ -66,6 +66,10 @@ export function open_found_missing_unreads_banner(on_jump_to_first_unread: () =>
export function close_found_missing_unreads_banner(): void {
const $banner = $("#popup_banners_wrapper").find(".found-missing-unreads");
if ($banner.length === 0) {
return;
}
fade_out_popup_banner($banner);
}