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

Fix Cookie House purchase modal flashing 'Error' in title #2274

Merged
merged 3 commits into from
Jan 19, 2023

Conversation

NevilleS
Copy link
Contributor

@NevilleS NevilleS commented Jan 18, 2023

Closes #2138

Code Changes

  • Replace the dynamic product.name from title with static "Submit Your Order" text instead

Steps to Confirm

  • Run nox -s "build(sample)" to rebuild project
  • Run fides deploy up --no-pull to run sample project
  • Purchase a cookie!

Pre-Merge Checklist

Description Of Changes

This is a subtle one - but technically the product prop is only valid for this modal until the purchase is made, so when the modal is fading out the "Error" text would display. Rather than fight with some additional state here, the safest change is to just not render a dynamic title on the modal.

See quick video here:
https://www.loom.com/share/a050cfa7cce14d42b7f01d1086481ff1

...and updated screenshot:
image

Copy link
Contributor

@LKCSmith LKCSmith left a comment

Choose a reason for hiding this comment

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

LGTM

@NevilleS NevilleS merged commit 67ac482 into main Jan 19, 2023
@NevilleS NevilleS deleted the 2138-ns-fix-cookie-house-error branch January 19, 2023 00:54
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.

Cookie House flashes "Error" instead of the cookie name briefly when a purchase is made
2 participants