Skip to content

Commit

Permalink
Add a condition if it's address editing
Browse files Browse the repository at this point in the history
  • Loading branch information
efremov-av committed Jul 4, 2024
1 parent 042f598 commit 11bab9f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions react/CountrySelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ class CountrySelector extends Component {
value: address.country.value,
}

if (!!address?.addressId?.value) {
address.country.disabled = true
}

return (
<InputFieldContainer
intl={intl}
Expand Down

0 comments on commit 11bab9f

Please sign in to comment.