Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function hasMessages(errors: any) {
return isObject(errors) && !isEmpty(errors);
}
function getMessages(
stateMessages: Messages,
actionMessages: Messages
) {
return !isEmpty(actionMessages)
? actionMessages
: isEmpty(stateMessages)
? stateMessages
: {};
}
function getMessages(
stateMessages: Messages,
actionMessages: Messages
) {
return !isEmpty(actionMessages)
? actionMessages
: isEmpty(stateMessages)
? stateMessages
: {};
}