Skip to content
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

Fixed Bug Resting\Bun in oven changePrices bug #31

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

PantsStatusZero
Copy link
Contributor

changePrices tries to convert Resting \ Bun in the oven status into US dollars which displays a NaN status. This change prevents that from happening.

changePrices tries to convert Resting \ Bun in the oven status into US dollars which displays a NaN status. This change prevents that from happening.
it was trying to convert hours to dollars on resting and bun in oven statuses
@PantsStatusZero
Copy link
Contributor Author

The return; in my fix should have been a continue;

                      let text = item.getElementsByTagName('span')[0].innerText;

                      if(text.toUpperCase().indexOf("HOURS")>0){
                          continue;
                      }

Before this fix
image

After this fix
image

@HaJaeKyung
Copy link
Owner

This should be fixed now.

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