diff --git a/client/src/actions/index.js b/client/src/actions/index.js index 0c9fd3a5..27d57f39 100644 --- a/client/src/actions/index.js +++ b/client/src/actions/index.js @@ -16,6 +16,7 @@ export const showSettingsFailure = createAction('SETTINGS_FAILURE_SHOW'); export const toggleSetting = (settingKey, status) => async (dispatch) => { let successMessage = ''; try { + // TODO move setting keys to constants switch (settingKey) { case 'filtering': if (status) { diff --git a/client/src/api/Api.js b/client/src/api/Api.js index e09ed797..8cec8a05 100644 --- a/client/src/api/Api.js +++ b/client/src/api/Api.js @@ -14,6 +14,7 @@ export default class Api { }); return response.data; } catch (error) { + console.error(error); throw new Error(`${this.baseUrl}/${path} | ${error.response.data} | ${error.response.status}`); } }