diff options
author | Jared Norman <jared@super.gd> | 2020-01-22 10:16:06 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-22 10:16:06 -0800 |
commit | b7e6a192a1afae053288af0c3a33c7f60cfd34b9 (patch) | |
tree | 3edcb7b3fedbdc699b2d68079ecbb7e506dc8f66 /lib/super_good | |
parent | 48a68fcb692d83e211794ba064fd4448158a0c92 (diff) | |
parent | ac30ff69f619bc504cd295de2f983310077b30e0 (diff) |
Merge pull request #18 from spaghetticode/spaghetticode/minor-fixes
Remove unnecessary errors when validating address without country
Diffstat (limited to 'lib/super_good')
-rw-r--r-- | lib/super_good/solidus_taxjar/calculator_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/super_good/solidus_taxjar/calculator_helper.rb b/lib/super_good/solidus_taxjar/calculator_helper.rb index 89dedc0..dbde950 100644 --- a/lib/super_good/solidus_taxjar/calculator_helper.rb +++ b/lib/super_good/solidus_taxjar/calculator_helper.rb @@ -15,9 +15,9 @@ module SuperGood [ address.address1, address.city, - address&.state&.abbr || address.state_name, + address.state&.abbr || address.state_name, address.zipcode, - address.country.iso + address.country&.iso ].any?(&:blank?) end |