user_card_popover: Fix blueslip error messages.

This commit is contained in:
Daniil Fadeev 2023-09-18 14:13:16 +03:00 committed by Tim Abbott
parent 487d61caf5
commit f3938acc71
1 changed files with 4 additions and 4 deletions

View File

@ -392,13 +392,13 @@ export function user_card_popover_manage_menu_handle_keyboard(key) {
export function get_user_card_popover_manage_menu_items() { export function get_user_card_popover_manage_menu_items() {
if (!$current_user_card_popover_manage_menu) { if (!$current_user_card_popover_manage_menu) {
blueslip.error("Trying to get menu items when action popover is closed."); blueslip.error("Trying to get menu items when manage menu popover is closed.");
return undefined; return undefined;
} }
const popover_data = $current_user_card_popover_manage_menu.data("popover"); const popover_data = $current_user_card_popover_manage_menu.data("popover");
if (!popover_data) { if (!popover_data) {
blueslip.error("Cannot find popover data for actions menu."); blueslip.error("Cannot find popover data for manage menu.");
return undefined; return undefined;
} }
@ -495,13 +495,13 @@ export function user_card_popover_for_message_handle_keyboard(key) {
function get_user_card_popover_for_message_items() { function get_user_card_popover_for_message_items() {
if (!$current_message_user_card_popover_elem) { if (!$current_message_user_card_popover_elem) {
blueslip.error("Trying to get menu items when action popover is closed."); blueslip.error("Trying to get menu items when message user card popover is closed.");
return undefined; return undefined;
} }
const popover_data = $current_message_user_card_popover_elem.data("popover"); const popover_data = $current_message_user_card_popover_elem.data("popover");
if (!popover_data) { if (!popover_data) {
blueslip.error("Cannot find popover data for actions menu."); blueslip.error("Cannot find popover data for message user card menu.");
return undefined; return undefined;
} }