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 GitHub
parent 859a82d428
commit ac15b3b465
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      ui/ducks/send/send.js

@ -1082,6 +1082,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(GAS_FEE_ESTIMATES_UPDATED, (state, action) => {
// When the gasFeeController updates its gas fee estimates we need to
// update and validate state based on those new values

Loading…
Cancel
Save