diff --git a/src/javascript/order_state.js b/src/javascript/order_state.js index a7f9791..5f2fc1b 100644 --- a/src/javascript/order_state.js +++ b/src/javascript/order_state.js @@ -1,5 +1,5 @@ function changeOrderState() { - const states = document.querySelectorAll('#restaurants > article > #orders > article > select'); + const states = document.querySelectorAll('#restaurant_orders > article > #orders > article > select'); states.forEach(function(state, i) { idFoodOrder = state.getAttribute('data-id');