Skip to content

Commit

Permalink
Sc 23417 (#1150)
Browse files Browse the repository at this point in the history
* Add default address type for appended address form

* Explain purpose for adding default address type when address forms are appended

* Add todo comment to add constant for address type
  • Loading branch information
daniellemaxwell authored Jan 23, 2024
1 parent 33dfc4b commit 81d6f71
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/gds-user-ui/src/components/Addresses/AddressList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ function AddressList() {

const handleAddressClick = () => {
append({
address_type: '',
/* Set the default address type value for additional any addresses
to match the default address type provided by backend. */
/* Add constant for address type that matches the backend. */
address_type: 'ADDRESS_TYPE_CODE_BIZZ',
address_line: ['', '', ''],
country: ''
});
Expand Down

0 comments on commit 81d6f71

Please sign in to comment.