From 4c2e4d94560eeea2fceb0fb691641b5505fefada Mon Sep 17 00:00:00 2001 From: Sumit Panwar Date: Mon, 20 Jan 2025 17:08:53 +0530 Subject: [PATCH] Fixed: Notice should be mentioned if no rooms are available for reallocation in order detail pafe in back-office --- js/admin/reallocation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/admin/reallocation.js b/js/admin/reallocation.js index 21846b804..130e03c7c 100644 --- a/js/admin/reallocation.js +++ b/js/admin/reallocation.js @@ -87,7 +87,7 @@ const RoomReallocationModal = { // For Rooms Swapping var json_arr_rm_swp = roomObj.data('avail_rm_swap'); - if (roomObj.data('avail_rm_swap') != 'false' && json_arr_rm_swp.length != 0) { + if (json_arr_rm_swp != false && json_arr_rm_swp.length != 0) { html = ''; $.each(json_arr_realloc_room_types, function(key, room_type) {