File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -24,26 +24,26 @@ const initialState: ICurrencyConverterReducer = {
2424 baseCurrency : 'PLN' ,
2525 targetCurrency : 'SEK' ,
2626 baseValue : '0' ,
27- targetValue : '0'
27+ targetValue : '0' ,
2828} ;
2929
3030export default function reducer ( state = Immutable . from ( initialState ) , action : Action < any > ) {
3131 switch ( action . type ) {
3232 case UPDATE_BASE_CURRENCY :
3333 return state . merge ( {
34- baseCurrency : action . payload
34+ baseCurrency : action . payload ,
3535 } ) ;
3636 case UPDATE_TARGET_CURRENCY :
3737 return state . merge ( {
38- targetCurrency : action . payload
38+ targetCurrency : action . payload ,
3939 } ) ;
4040 case UPDATE_BASE_VALUE :
4141 return state . merge ( {
42- baseValue : action . payload
42+ baseValue : action . payload ,
4343 } ) ;
4444 case UPDATE_TARGET_VALUE :
4545 return state . merge ( {
46- targetValue : action . payload
46+ targetValue : action . payload ,
4747 } ) ;
4848
4949 default : return state ;
You can’t perform that action at this time.
0 commit comments