Refactoring
This commit is contained in:
@@ -25,10 +25,9 @@ export const downloadReducer = createReducer({
|
||||
[SET_DOWNLOAD_BEGIN]: (state, action) => {
|
||||
return {
|
||||
...state,
|
||||
...defaultDownloadState,
|
||||
DownloadActive: true,
|
||||
DownloadName: action.payload.name,
|
||||
DownloadProgress: 0.0,
|
||||
DownloadResult: null,
|
||||
DownloadType: action.payload.type,
|
||||
DownloadURL: action.payload.url,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user