fix: update migration modal visibility logic#427
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
This pull request updates the logic for displaying the migration modal in the
MigrationBannerWrappercomponent. The new logic ensures that the modal is only shown to users who are not using an injected wallet and have dismissed the modal via store or storage.canShowMigrationModalto only allow showing the modal if the user is not using an injected wallet and has dismissed the modal via store or storage, preventing injected wallet users from seeing the modal. (app/context/MigrationContext.tsx, app/context/MigrationContext.tsxL36-R37)References
closes #373
Testing
Checklist
mainBy submitting a PR, I agree to Paycrest's Contributor Code of Conduct and Contribution Guide.
Summary by CodeRabbit
Release Notes