🔄 Fixed a redux store issue with download counts

This commit is contained in:
2021-09-06 01:53:27 -07:00
parent c8061e0d5c
commit a173b4f971
7 changed files with 84 additions and 35 deletions

View File

@@ -15,6 +15,7 @@ const initialState = {
searchInstance: null,
downloadResult: null,
bundleDBImportResult: null,
bundles: [],
};
function airdcppReducer(state = initialState, action) {
@@ -38,6 +39,7 @@ function airdcppReducer(state = initialState, action) {
searchInstance: action.instance,
};
case AIRDCPP_RESULT_DOWNLOAD_INITIATED:
console.log(action)
return {
...state,
downloadResult: action.downloadResult,
@@ -61,6 +63,7 @@ function airdcppReducer(state = initialState, action) {
searchInstance: null,
downloadResult: null,
bundleDBImportResult: null,
// bundles: [],
};
default: