summaryrefslogtreecommitdiff
path: root/lib/super_good
diff options
context:
space:
mode:
authorJared Norman <jared@super.gd>2020-01-22 10:16:06 -0800
committerGitHub <noreply@github.com>2020-01-22 10:16:06 -0800
commitb7e6a192a1afae053288af0c3a33c7f60cfd34b9 (patch)
tree3edcb7b3fedbdc699b2d68079ecbb7e506dc8f66 /lib/super_good
parent48a68fcb692d83e211794ba064fd4448158a0c92 (diff)
parentac30ff69f619bc504cd295de2f983310077b30e0 (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.rb4
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