-
Notifications
You must be signed in to change notification settings - Fork 115
fix: country data setting #1100
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
base: main
Are you sure you want to change the base?
Conversation
| let optionsCallback = (optionsPayment: PaymentType.options) => { | ||
| let optionsCallback = async (optionsPayment: PaymentType.options) => { | ||
| try { | ||
| let _ = await S3Utils.initializeCountryData(~locale=config.locale, ~logger) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we are not using the value returned by initializeCountryData, you can return unit instead of data
| let getBillingAddressFields = (countryDataContent): array< | ||
| PaymentMethodsRecord.paymentMethodsFields, | ||
| > => { | ||
| open Utils |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to call open Utils, you are only using it in one place
|
|
||
| let getClientCountry = clientTimeZone => { | ||
| CountryStateDataRefs.countryDataRef.contents | ||
| open CountryStateDataRefs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to write this line either
🚫 Missing Linked IssueHi 👋 This pull request does not appear to be linked to any open issue yet. Linking your PR to an issue helps keep the project tidy and ensures the issue is closed automatically. ✔️ How to fix this
Once linked, this check will pass automatically on your next push or when you re-run the workflow. Thanks for helping maintainers! 🙌 |
Type of Change
Description
Country Mapping set to empty array initially
Set Up country based upon fetched list from S3
Added Asia/Calcutta as Timezone
How did you test it?
Tested Locally
Checklist
npm run re:build