get the user address form to show up#6195
Conversation
…s if there are 2 or fewer
|
Hmmm @katiecrane did you use your NY address? Did it just simply say it was invalid or did it suggest a way to fix it? |
|
@mikefantini no I used my parents' address in GA. It said it was invalid and did not suggest a way to fix it. |
|
Yeah @katiecrane so on production all addresses work, but for testing purposes only NY and CA addresses work. |
|
@mikefantini the more you know. I just tried with an NY address and it worked! Suggested fixes and then accepted the address. |
|
@katiecrane did you check the issue that this fix was added for? to make sure that didn't break? cc @weerd |
|
@angaither It looks like this now which is less extra space than in #5788, but I'm not sure if it looks the same as @weerd 's fix (but I think it should?) |
|
I'm not 100% sure why |
|
@weerd it's only in the |
|
okie doke. sounds cool 💃 |
|
👍 |
get the user address form to show up

What's this PR do?
There was an if statement that was unsetting all the form elements if there were fewer than 10 of them. However, we only want that to unset if only the default elements are there, and there are 2 of those.
How should this be manually tested?
Any background context you want to provide?
When I was submitting my address, it was saying it was invalid. I'm not sure if it just doesn't work on local or if that has to do with the UPS api.
What are the relevant tickets?
Fixes #6158
cc: @mikefantini, @DFurnes (also shoutout to him for help with drupal spelunking)