-
-
Notifications
You must be signed in to change notification settings - Fork 775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve performance on cart load #8702
Conversation
// Make sure none have empty currencies, and if they do default to 0.001 ETH. This is done | ||
// to prevent the cart from getting stuck loading if a currency is empty | ||
updatedGrant[grantIndex]['grant_donation_currency'] = grant.grant_donation_currency ? grant.grant_donation_currency : 'ETH'; | ||
updatedGrant[grantIndex]['grant_donation_amount'] = grant.grant_donation_amount ? grant.grant_donation_amount : '0.001'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR looks great! Just one small comment here: This should probably vary by tenant, right? It seems right now we set the default value to 0.001 ETH regardless of the grant's tenant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only if not defined but I fixed the others areas to always be defined already, so probably this part will be deleted on some point is just a double check for security for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code wise lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! 🚀 LGTM!!
Description
Refers/Fixes
Testing
A lot of testing with diff chains and fixing consoles errors.
Improve the load performance
VID_20210325_181551.mp4