Tell us what’s happening:
const handleShapeSelect = (e: Event) => {
e.preventDefault();
clearInputFields();
const val = e.currentTarget as HTMLSelectElement;
if (!val){
return target value not found;
}
};
stuck at level 38
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: index.ts */
// User Editable Region
const val = e.currentTarget as HTMLSelectElement;
if (!val){
return `target value not found`;
}
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36
Challenge Information:
Build a Shape Manager - Step 38