Ensure send slice gas loading state is set to false upon gas estimation error (#11581)

feature/default_network_editable
Dan J Miller 3 years ago committed by Dan Miller
parent eb3b9e213b
commit 6a208556b8
  1. 5
      ui/ducks/send/send.js

@ -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…
Cancel
Save