Toast type in errorToast is incorrect
When using API middleware's errorToast option, the action dispatched has a type 'error' which is incorrect. This results in a console warning:
Toast notification type 'error' is invalid. Please use one of the following types: success,danger,warning,info,default
It transforms the error to the 'danger' type, but still displays the warning. It should be 'danger' from the beginning to avoid the console warning.