Run then JavaScript Promises problem

Hello I’m Baris new on Appsmith

I want to run a query and if there is reponce take an action,
So write the script below but there is red line under responce (if ( response.length > 0)) and says “responce is not defined”

What is wrong with it?

export default {
test: () => {

SelectActiveUser.run().then((responce) => {
		if ( response.length > 0) {
			showAlert("Success", 'success');
		}
		else
			showAlert("Failure Login", 'error');
})			

}
}

Thank you for your responce,

because

then((responce)
if ( response

one is responce other is response :face_with_hand_over_mouth:

Happy you were able to figure that out! :grinning: