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 address fetch crash (v4) #1325

Merged
merged 2 commits into from
Aug 31, 2023
Merged

Fix address fetch crash (v4) #1325

merged 2 commits into from
Aug 31, 2023

Conversation

OscarSpruit
Copy link
Contributor

Description

  • Return empty list when fetching country or states fails. Before it would crash. Now when fetching countries fails we notify the merchant and display a dialog to the shopper. This should prevent the shopper from proceeding to the empty states list.

  • Keep AddressSpecification from being obfuscated. We are mapping country codes the this enum's entries. This will not work if the enum is obfuscated.

Checklist

COAND-777

@OscarSpruit OscarSpruit added the Fix [PRs only] Indicates a bug fix label Aug 30, 2023
@OscarSpruit OscarSpruit requested a review from a team as a code owner August 30, 2023 15:52
Before it would crash. Now when fetching countries fails we notify
the merchant and display a dialog to the shopper. This should prevent
the shopper from proceeding to the empty states list.

COAND-777
We are mapping country codes the this enum's entries. This will not
work if the enum is obfuscated.

COAND-777
@OscarSpruit OscarSpruit merged commit 02403eb into v4 Aug 31, 2023
1 check passed
@OscarSpruit OscarSpruit deleted the fix/address_crash branch August 31, 2023 08:28
@OscarSpruit OscarSpruit linked an issue Aug 31, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix [PRs only] Indicates a bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CardComponent unable to get address data when offline
2 participants