Skip to content

Commit

Permalink
fix: added CLEAR_TRANSACTION(S) to storage actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cazala committed Oct 1, 2018
1 parent f3b721b commit 180608f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/modules/storage/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ import {
FETCH_TRANSACTION_FAILURE,
UPDATE_TRANSACTION_STATUS,
UPDATE_TRANSACTION_NONCE,
REPLACE_TRANSACTION_SUCCESS
REPLACE_TRANSACTION_SUCCESS,
CLEAR_TRANSACTIONS,
CLEAR_TRANSACTION
} from '../transaction/actions'

const disabledLoad = (store: any) =>
Expand Down Expand Up @@ -57,6 +59,8 @@ export function createStorageMiddleware<T>(options: StorageMiddleware<T>) {
UPDATE_TRANSACTION_STATUS,
UPDATE_TRANSACTION_NONCE,
REPLACE_TRANSACTION_SUCCESS,
CLEAR_TRANSACTIONS,
CLEAR_TRANSACTION,
...actions
]
)
Expand Down

0 comments on commit 180608f

Please sign in to comment.