Add missing curly brackets to the if
Address issues with drawer position state