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) {