We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I follow the instruction but get the following error when I start the web app.
Unhandled Runtime Error TypeError: Cannot read properties of undefined (reading 'toLowerCase')
Source utils/prices.js (24:64) @ eval
22 | 23 | let moneyAmount = variant.prices.find(
24 | (p) => p.currency_code.toLowerCase() === cart.currency_code.toLowerCase() | ^ 25 | ); 26 | 27 | if (moneyAmount && moneyAmount.amount) {
The text was updated successfully, but these errors were encountered:
I believe it is because cart.currency_code here should be cart.region.currency_code instead, which is what it is like on L39
cart.currency_code
cart.region.currency_code
Sorry, something went wrong.
@vupham84 @kjcsb1 Thank you for pointing out the error, the issue should be resolved now 👍
Successfully merging a pull request may close this issue.
Hi, I follow the instruction but get the following error when I start the web app.
Unhandled Runtime Error
TypeError: Cannot read properties of undefined (reading 'toLowerCase')
Source
utils/prices.js (24:64) @ eval
22 |
23 | let moneyAmount = variant.prices.find(
The text was updated successfully, but these errors were encountered: