const mainReducer = (state , action) => {
	switch (action.type) {
		case 'REQUEST_LOCATION':
			return Object.assign({}, state, {
				loading: true
			})
		case 'RECEIVE_LOCATION':
			return Object.assign({}, state, {
			location: {
				city: action.city,
				latitude: action.latitude,
				longitude: action.longitude
			},
			locationIsChanged: false
		})
		case 'CHANGE_LOCATION':
			return Object.assign({}, state, {
				location: {
					city: action.city,
					latitude: action.latitude,
					longitude: action.longitude
				},
				locationIsChanged: true
			})
		case 'RECEIVE_WEATHER':
			return Object.assign({}, state, {
				temperature: action.temperature,
				weatherDescription: action.description,
				weatherIcon: action.icon,
				pageBackground: action.background,
				loading: false,
				loadingError: false
			})
		case 'SWITCH_EDIT_MODE':
			return Object.assign({}, state, {
				editMode: action.value
			})
		case 'LOADING_FAILED':
			return Object.assign({}, state, {
				loading: false,
				loadingError: true
			})
		default:
			return state;
	}
};

export default mainReducer;
@@ -100,39 +100,19 @@
 urn 
-Object.assign(%7B%7D, 
+%7B...
 state, 
-%7B%0A%09%09%09%09
 load
@@ -116,30 +116,25 @@
 oading: true
-%0A%09%09%09%7D)
+%7D
 %0A%09%09case 'REC
@@ -163,38 +163,29 @@
 urn 
-Object.assign(%7B%7D, 
+%7B%0A%09%09%09%09%09...
 state,
- %7B
 %0A%09%09%09
+%09
 loca
@@ -188,24 +188,25 @@
 location: %7B%0A
+%09
 %09%09%09%09city: ac
@@ -212,24 +212,25 @@
 ction.city,%0A
+%09
 %09%09%09%09latitude
@@ -248,24 +248,25 @@
 titude,%0A%09%09%09%09
+%09
 longitude: a
@@ -284,19 +284,21 @@
 tude%0A%09%09%09
+%09
 %7D,%0A
+%09
 %09%09%09locat
@@ -319,18 +319,18 @@
 false%0A%09%09
+%09
 %7D
-)
 %0A%09%09case 
@@ -362,34 +362,23 @@
 urn 
-Object.assign(%7B%7D, 
+%7B%0A%09%09%09%09...
 state,
- %7B
 %0A%09%09%09
@@ -514,25 +514,24 @@
 d: true%0A%09%09%09%7D
-)
 %0A%09%09case 'REC
@@ -559,34 +559,23 @@
 urn 
-Object.assign(%7B%7D, 
+%7B%0A%09%09%09%09...
 state,
- %7B
 %0A%09%09%09
@@ -765,25 +765,24 @@
 : false%0A%09%09%09%7D
-)
 %0A%09%09case 'SWI
@@ -811,34 +811,23 @@
 urn 
-Object.assign(%7B%7D, 
+%7B%0A%09%09%09%09...
 state,
- %7B
 %0A%09%09%09
@@ -854,17 +854,16 @@
 lue%0A%09%09%09%7D
-)
 %0A%09%09case 
@@ -894,34 +894,23 @@
 urn 
-Object.assign(%7B%7D, 
+%7B%0A%09%09%09%09...
 state,
- %7B
 %0A%09%09%09
@@ -953,17 +953,16 @@
 rue%0A%09%09%09%7D
-)
 %0A%09%09defau

Use spread operator instead Object.assign