UNPKG

ilp-core

Version:

ILP core module managing ledger abstraction

18 lines (15 loc) 319 B
import * as types from '../actionTypes' const initialState = { info: {} } export default function reducer (state = initialState, action = {}) { switch (action.type) { case types.GET_SETTLEMENT_SUCCESS: return { ...state, info: action.result } default: return state } }