fix(app): Normalize flash type
Changed flash messages to use types provided by Bootstrap Closes #16395
This commit is contained in:
@@ -30,7 +30,7 @@ export default function prodErrorHandler() {
|
||||
if (type === 'html') {
|
||||
if (typeof req.flash === 'function') {
|
||||
req.flash(
|
||||
handled.type || 'errors',
|
||||
handled.type || 'danger',
|
||||
{ msg: message }
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user