@wenn/onb
Version:
onb-core
22 lines (19 loc) • 458 B
JavaScript
import { GLOBAL_NOTIFICATION } from '../constants';
//constant to fake the errors in order to see them
/*const error = {
bpmstep: {
code: 'is_in_blacklist'
},
status: {
statusCode: '404',
message: 'Customer scoring not avaliable'
}
}*/
export default function globalNotificationReducer(state = {}, action) {
switch (action.type) {
case GLOBAL_NOTIFICATION:
return action.notification;
default:
return state;
}
}