src/reducers/userData.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 2

Size

Lines of Code 14
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 10
mnd 1
bc 1
fnc 1
dl 0
loc 14
rs 10
bpm 1
cpm 2
noi 0
c 0
b 0
f 0
1
import { RENDER_DATA, IMPORT_JSON } from '../constants/ActionTypes'
2
3
const userData = (state = {}, action) => {
4
  switch (action.type) {
5
    case RENDER_DATA:
6
      return action.data.userData
7
    case IMPORT_JSON:
8
      return action.data.cv
9
    default:
10
      return state
11
  }
12
}
13
14
export default userData
15