Skip to content

Conversation

@aritro2002
Copy link
Contributor

Type of Change

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

Description

This PR refactors the handling of country and state data by removing the S3 fetch logic and local backup variables, and instead directly using the shared code that already provides the complete list. This simplifies the implementation, reduces redundant code, and ensures a single source of truth for country and state information across the codebase.

How did you test it?

I tested it by removing the dynamic fields and adding custom values for billing.
image

Checklist

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

@semanticdiff-com
Copy link

semanticdiff-com bot commented Sep 22, 2025

Review changes with  SemanticDiff

Changed Files
File Status
  src/Components/AddressPaymentInput.res Unsupported file format
  src/Components/DynamicFields.res Unsupported file format
  src/Country.res Unsupported file format
  src/CountryStateDataRefs.res Unsupported file format
  src/LoaderController.res Unsupported file format
  src/Payments/PaymentMethodsRecord.res Unsupported file format
  src/Payments/PaymentMethodsWrapper.res Unsupported file format
  src/States.json  0% smaller
  src/Types/PaymentType.res Unsupported file format
  src/Utilities/DynamicFieldsUtils.res Unsupported file format
  src/Utilities/PaymentUtils.res Unsupported file format
  src/Utilities/S3Utils.res Unsupported file format
  src/Utilities/Utils.res Unsupported file format
  webpack.common.js  0% smaller

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

use shared country/state list instead of S3 + local backups

1 participant