gitcoinco / gitcoinco/web

fix errors when clicking on standard checkout before gas estimation on checkout page

Open
#9,748 0 comments 0 reactions 0 assignees View on GitHub
not ready
Dominant language
JavaScript
Stars
1.8k
Forks
776
PR merge metrics
No merged PRs in 30d

Description

### Description

This error happens when a user clicks on standard checkout / checkout with zksync when the gas cost recommendation result hasn't been returned.

Reference: https://github.com/gitcoinco/web/issues/9488

### Reproduction

1. open gitcoin.co/grants/cart
2. make sure you have grants in your cart
3. quickly click on standard checkout or zksync before the gas cost recommendation is returned
3. see error(s) attached.

![image-2021-11-02-22-15-13-228](https://user-images.githubusercontent.com/7516920/143794462-18caf5a5-3e92-4853-9bad-5e41ab3f6a2d.png)

Screen Shot 2021-11-03 at 12 15 18

Screen Shot 2021-11-03 at 12 19 41

### Acceptance Criteria
GIVEN I am on the checkout page before the gas recommendation
WHEN I click on standard checkout
THEN there should be no error(s).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.