Skip to content

Conversation

@sakksham7
Copy link
Contributor

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

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

  • I ran npm run re:build
  • I reviewed submitted code
  • I added unit tests for my changes where possible

@semanticdiff-com
Copy link

Review changes with  SemanticDiff

@PritishBudhiraja PritishBudhiraja added the Ready for Review PR with label Ready for Review should only be reviewed. label Jul 11, 2025
let optionsCallback = (optionsPayment: PaymentType.options) => {
let optionsCallback = async (optionsPayment: PaymentType.options) => {
try {
let _ = await S3Utils.initializeCountryData(~locale=config.locale, ~logger)
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Collaborator

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

@github-actions
Copy link
Contributor

🚫 Missing Linked Issue

Hi 👋 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

  • Add a keyword like Fixes #123 or Closes #456 to your PR description or a commit message.
  • Or link it manually using the "Linked issues" panel in the PR sidebar.

Tip: You can link multiple issues.
🚫 Note: If only one issue is linked, it must be open for this check to pass.

Once linked, this check will pass automatically on your next push or when you re-run the workflow.

Thanks for helping maintainers! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready for Review PR with label Ready for Review should only be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants