Skip to content

Commit 8f93ec4

Browse files
authored
Merge pull request MetaMask#11 from meppsilon/batch-status-error
Capture persistent errors in batch status
2 parents a83c882 + d9ee8b0 commit 8f93ec4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ui/store/actions.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -3158,11 +3158,17 @@ export function updateSmartTransaction(uuid, txData) {
31583158
}
31593159

31603160
export function fetchSmartTransactionsStatus(uuids) {
3161-
return async () => {
3161+
return async (dispatch) => {
31623162
try {
31633163
await promisifiedBackground.fetchSmartTransactionsStatus(uuids);
31643164
} catch (e) {
31653165
log.error(e);
3166+
if (isPersistentError(e)) {
3167+
dispatch({
3168+
type: actionConstants.SET_SMART_TRANSACTIONS_ERROR,
3169+
payload: e.message,
3170+
});
3171+
}
31663172
}
31673173
};
31683174
}

0 commit comments

Comments
 (0)