DEV Community

loading...

Discussion on: 4 practices for better code

Collapse
doniz profile image
Donatas Navidonskis

This can be improved. On the end part use dependency injection for login which integrates into submitHandler. And the error block you can move within promise catch.

Forem Open with the Forem app