Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
chore: add trim for state
Browse files Browse the repository at this point in the history
  • Loading branch information
habib-deriv committed Feb 4, 2024
1 parent 2b82bbc commit 9a56690
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/signup-affiliates/_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type AffiliateAccountTypes = {
type AffiliateSendTypes = {
address_city: string
address_postcode: string
address_state: string
address_state: any
address_street: string
commission_plan: number
country: string
Expand Down
2 changes: 1 addition & 1 deletion src/pages/signup-affiliates/utils/_utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const Submit = ({
country: affiliate_account.account_address.country.symbol,
address_city: trimOnly(affiliate_account.account_address.city),
address_postcode: affiliate_account.account_address.postal_code,
address_state: customSlugify(affiliate_account.account_address.state.name),
address_state: trimOnly(affiliate_account.account_address.state?.name),
address_street: trimOnly(affiliate_account.account_address.street),
first_name: trimOnly(affiliate_account.account_details.first_name),
last_name: trimOnly(affiliate_account.account_details.last_name),
Expand Down

0 comments on commit 9a56690

Please sign in to comment.