summaryrefslogtreecommitdiff
path: root/lib/super_good
diff options
context:
space:
mode:
authorChris Todorov <chris@super.gd>2021-03-15 14:59:10 -0700
committerChris Todorov <chris@super.gd>2021-03-18 00:49:57 -0700
commitf994ce1c323397c74c81fb53aa7c56fdd1cbe2e0 (patch)
tree4f8f4877b0ae87618813c77d44f16f164ca7a55d /lib/super_good
parentcbc9db074cad3de73e6cbc8482cc34c66b022ef5 (diff)
Fix typo in `validate_address_params` helper
This change fixes a typo in the params helper for addresses without a `state` association. This was a previously untested behaviour so we never caught this. This change also marks the failing test as no longer pending.
Diffstat (limited to 'lib/super_good')
-rw-r--r--lib/super_good/solidus_taxjar/api_params.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/super_good/solidus_taxjar/api_params.rb b/lib/super_good/solidus_taxjar/api_params.rb
index ebf034d..ef189e9 100644
--- a/lib/super_good/solidus_taxjar/api_params.rb
+++ b/lib/super_good/solidus_taxjar/api_params.rb
@@ -69,7 +69,7 @@ module SuperGood
def validate_address_params(spree_address)
{
country: spree_address.country&.iso,
- state: spree_address.state&.abbr || adddress.state_name,
+ state: spree_address.state&.abbr || spree_address.state_name,
zip: spree_address.zipcode,
city: spree_address.city,
street: spree_address.address1