-
Notifications
You must be signed in to change notification settings - Fork 425
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
(1CT) Do not add the authenticator message if the 1CT swap tool CTA is hidden #4019
(1CT) Do not add the authenticator message if the 1CT swap tool CTA is hidden #4019
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
4 Skipped Deployments
|
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 eslint
packages/web/hooks/one-click-trading/use-one-click-trading-swap-review.tsOops! Something went wrong! :( ESLint: 8.50.0 ESLint couldn't find the config "next/core-web-vitals" to extend from. Please check that the name of the config is correct. The config "next/core-web-vitals" was referenced from the config file in "/packages/web/.eslintrc.json". If you still have problems, please stop by https://eslint.org/chat/help to chat with the team. WalkthroughThe pull request modifies the Changes
Sequence DiagramsequenceDiagram
participant User
participant ReviewOrderModal
participant OneClickTradingHook
participant TransactionStore
User->>ReviewOrderModal: Open Modal
ReviewOrderModal->>OneClickTradingHook: Check enabled (isOpen && show1CT)
alt One-Click Trading Enabled
OneClickTradingHook->>TransactionStore: Update Transaction Parameters
OneClickTradingHook->>TransactionStore: Calculate Spend Limit
else One-Click Trading Disabled
ReviewOrderModal->>ReviewOrderModal: Show Enable 1CT Panel
end
Possibly Related PRs
Suggested Reviewers
Tip CodeRabbit's docstrings feature is now available as part of our Early Access Program! Simply use the command 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🧰 Additional context used📓 Learnings (1)packages/web/modals/review-order.tsx (1)
🔇 Additional comments (6)packages/web/hooks/one-click-trading/use-one-click-trading-swap-review.ts (5)
The rename from
The effect properly updates transaction parameters only when the feature is enabled.
The effect correctly updates spend limit token decimals only when the feature is enabled.
The effect correctly updates changes only when the feature is enabled.
The effect correctly handles cleanup by resetting all states when the feature is disabled. packages/web/modals/review-order.tsx (1)
The condition Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
What is the purpose of the change:
1CT add-authenticator message is added to every mobile transaction even though there is no option to enable this on mobile browsers.
Linear Task
https://linear.app/osmosis/issue/FE-1301/do-not-add-the-authenticator-message-if-the-1ct-swap-tool-is-hidden
Testing and Verifying