Api not calling in alpha

this is how i created the onclick for submitting here when i click the button I’m not able to see the consoles and the result which is defined inside the function only a undefined is showing in the console

image

does anyone know why is that happening

@Sam @Simphiwe

Hello @Aswin ,
Please ensure that the response is being received correctly and verify that the local contains the expected value.