Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mudassir-hafeez committed Jul 12, 2024
1 parent b4966c7 commit 19b464b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion static/js/components/forms/ProfileFormFields.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ export const LegalAddressFields = ({
>
<option value="">-----</option>
{find(
propEq("code", values.legal_address.country),
propEq(values.legal_address.country,"code"),
countries
).states.map((state, i) => (
<option key={i} value={state.code}>
Expand Down
10 changes: 5 additions & 5 deletions static/js/containers/pages/profile/ViewProfilePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class ViewProfilePage extends React.Component<Props> {
<div className="col">
{
find(
propEq("code", currentUser.legal_address.country),
propEq(currentUser.legal_address.country,"code" ),
countries
).name
}
Expand All @@ -131,13 +131,13 @@ export class ViewProfilePage extends React.Component<Props> {
{
find(
propEq(
"code",
currentUser.legal_address.state_or_territory
currentUser.legal_address.state_or_territory,
"code"
),
find(
propEq(
"code",
currentUser.legal_address.country
currentUser.legal_address.country,
"code"
),
countries
).states
Expand Down

0 comments on commit 19b464b

Please sign in to comment.