diff --git a/public/js/vroom.js b/public/js/vroom.js index ba13a9d..b8f1d71 100644 --- a/public/js/vroom.js +++ b/public/js/vroom.js @@ -415,10 +415,10 @@ function getRoomInfo(cb){ }); // Now, remove the first one if the list is not empty if (Object.keys(data.notif).length > 0){ - $('.email-list').find('.email-entry:first').remove(); + $('#email-list-notification').find('.email-entry:first').remove(); } else{ - $('.email-list').find('.email-entry:first').find('input:first').val(''); + $('#email-list-notification').find('.email-entry:first').find('input:first').val(''); } adjustAddRemoveEmailButtons(); // Update config switches