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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Safely handle empty Swap fees #1786

Merged
merged 1 commit into from
May 16, 2024
Merged

Conversation

jwhardwick
Copy link
Contributor

@jwhardwick jwhardwick commented May 16, 2024

Hi馃憢, please prefix this PR's title with:

  • breaking-change: if you have introduced modification that necessitates immediate adjustments by this SDK's users to their applications, clients, or integrations to avert disruptions to existing features or functionalities.
  • feat:, fix:, refactor:, docs:, or chore:.

Summary

  • Handles uncaught exception showing Swap Fees when quotesProcessor returns no fees

Detail and impact of the change

  • On dev environments, the fees array is empty when swapping tIMX > WIMX, causing the Swap widget to crash

Fixed

  • Fallback to 0 if this fees are not available when displaying Swap secondary fees
Screen.Recording.2024-05-16.at.2.43.11.PM.mov

@jwhardwick jwhardwick requested a review from a team as a code owner May 16, 2024 05:23
Copy link
Contributor

@dreamoftrees dreamoftrees left a comment

Choose a reason for hiding this comment

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

馃帀 Nice work thanks @jwhardwick

@jwhardwick jwhardwick added this pull request to the merge queue May 16, 2024
Merged via the queue into main with commit 35f22b2 May 16, 2024
11 checks passed
@jwhardwick jwhardwick deleted the fix/swap-secondary-fees-dev branch May 16, 2024 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants