switch_to_alert function error

this->alert() is unnecessary. I believe its a typo. I removed the line and it all works as expected.