When I want to make more then one function call from onSubmit, I like to call a function that acts as my handler. So rather than deal with the logic you have for two function calls, just create a function called submitHandler() and do all the logic you want in it. Then you have one return value...