Skip to content

Commit

Permalink
remove call to typeof where it should not be
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristófer R committed Apr 5, 2021
1 parent 6f6b51f commit 355de59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/blocks/stripe-utils/normalize.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ const normalizeShippingAddressForCheckout = ( shippingAddress ) => {
shippingAddress.recipient?.split( ' ' )?.slice( 1 )?.join( ' ' ) ??
'',
company: '',
address_1: typeof shippingAddress.addressLine?.[ 0 ] ?? '',
address_2: typeof shippingAddress.addressLine?.[ 1 ] ?? '',
address_1: shippingAddress.addressLine?.[ 0 ] ?? '',
address_2: shippingAddress.addressLine?.[ 1 ] ?? '',
city: shippingAddress.city ?? '',
state: shippingAddress.region ?? '',
country: shippingAddress.country ?? '',
Expand Down

0 comments on commit 355de59

Please sign in to comment.