Skip to content

ue: fix undefined price #44 - #331

Open
ndionne wants to merge 1 commit into
vogler:mainfrom
ndionne:main
Open

ue: fix undefined price #44#331
ndionne wants to merge 1 commit into
vogler:mainfrom
ndionne:main

Conversation

@ndionne

@ndionne ndionne commented Jun 7, 2024

Copy link
Copy Markdown

This fix the issue with undefined price mentioned in #44 .
The price wouldn't be defined in the shopping cart unless clicked if it was empty on page load.

This fix the issue with undefined price. The price wouldn't be defined in the shopping cart unless clicked if it was empty on page load.
@Primajin

Copy link
Copy Markdown
Contributor

Thanks!

Comment thread unrealengine.js
console.log('Price: ', price[1], 'instead of', price[0]);
if (price[1] != '0') {
if (price[1] != '0' && price[1] != '$0.00') {
const err = 'Price is not 0! Exit! Please <a href="https://github.com/vogler/free-games-claimer/issues/44">report</a>.';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should maybe print the price here, just so that people see what it is instead and thus can report better issues in the future?

Suggested change
const err = 'Price is not 0! Exit! Please <a href="https://github.com/vogler/free-games-claimer/issues/44">report</a>.';
const err = `Price is ${price[1]} and thus not 0! Exit! Please <a href="https://github.com/vogler/free-games-claimer/issues/44">report</a>.`;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants