UNPKG
@wenn/onb
Version:
latest (1.0.0)
1.0.0
onb-core
@wenn/onb
/
redux
/
reducers
/
hasError.reducer.js
11 lines
(9 loc)
•
222 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{
HAS_ERROR
}
from
'../constants'
;
export
default
function
hasErrorReducer
(
state =
false
, action
) {
switch
(action.
type
) {
case
HAS_ERROR
:
return
action.
hasError
;
default
:
return
state; } }