mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Ensure send slice gas loading state is set to false upon gas estimation error (#11581)
This commit is contained in:
parent
eb3b9e213b
commit
6a208556b8
@ -1037,6 +1037,11 @@ const slice = createSlice({
|
||||
});
|
||||
}
|
||||
})
|
||||
.addCase(computeEstimatedGasLimit.rejected, (state) => {
|
||||
// If gas estimation fails, we should set the loading state to false,
|
||||
// because it is no longer loading
|
||||
state.gas.isGasEstimateLoading = false;
|
||||
})
|
||||
.addCase(SET_BASIC_GAS_ESTIMATE_DATA, (state, action) => {
|
||||
// When we receive a new gasPrice via the gas duck we need to update
|
||||
// the gasPrice in our slice. We call into the caseReducer
|
||||
|
Loading…
Reference in New Issue
Block a user