@@ -83,7 +83,7 @@ export const StepComplete: React.FC<Props> = ({
8383 >
8484 < Trans
8585 i18nKey = { "stepComplete.description" }
86- values = { { orderNumber : orderNumber } }
86+ values = { { orderNumber } }
8787 components = { {
8888 WrapperOrderId : < strong className = "text-black" /> ,
8989 } }
@@ -130,40 +130,44 @@ export const StepComplete: React.FC<Props> = ({
130130 </ RecapItemTitle >
131131 < RecapBox >
132132 < CustomAddress
133- firstName = { ctx . billingAddress ?. first_name }
134- lastName = { ctx . billingAddress ?. last_name }
135- city = { ctx . billingAddress ?. city }
136- line1 = { ctx . billingAddress ?. line_1 }
137- line2 = { ctx . billingAddress ?. line_2 }
138- zipCode = { ctx . billingAddress ?. zip_code }
139- stateCode = { ctx . billingAddress ?. state_code }
140- countryCode = { ctx . billingAddress ?. country_code }
141- phone = { ctx . billingAddress ?. phone }
133+ firstName = { ctx . billingAddress ?. first_name ?? "" }
134+ lastName = { ctx . billingAddress ?. last_name ?? "" }
135+ city = { ctx . billingAddress ?. city ?? "" }
136+ line1 = { ctx . billingAddress ?. line_1 ?? "" }
137+ line2 = { ctx . billingAddress ?. line_2 ?? "" }
138+ zipCode = { ctx . billingAddress ?. zip_code ?? "" }
139+ stateCode = { ctx . billingAddress ?. state_code ?? "" }
140+ countryCode = { ctx . billingAddress ?. country_code ?? "" }
141+ phone = { ctx . billingAddress ?. phone ?? "" }
142142 addressType = "billing"
143143 />
144144 </ RecapBox >
145145 </ div >
146- < > { ctx . isShipmentRequired && (
147- < div data-testid = "shipping-address-recap" >
148- < RecapItemTitle >
149- { t ( "stepComplete.ship_to" ) }
150- </ RecapItemTitle >
151- < RecapBox >
152- < CustomAddress
153- firstName = { ctx . shippingAddress ?. first_name }
154- lastName = { ctx . shippingAddress ?. last_name }
155- city = { ctx . shippingAddress ?. city }
156- line1 = { ctx . shippingAddress ?. line_1 }
157- line2 = { ctx . shippingAddress ?. line_2 }
158- zipCode = { ctx . shippingAddress ?. zip_code }
159- stateCode = { ctx . shippingAddress ?. state_code }
160- countryCode = { ctx . shippingAddress ?. country_code }
161- phone = { ctx . shippingAddress ?. phone }
162- addressType = "shipping"
163- />
164- </ RecapBox >
165- </ div >
166- ) } </ >
146+ < >
147+ { ctx . isShipmentRequired && (
148+ < div data-testid = "shipping-address-recap" >
149+ < RecapItemTitle >
150+ { t ( "stepComplete.ship_to" ) }
151+ </ RecapItemTitle >
152+ < RecapBox >
153+ < CustomAddress
154+ firstName = { ctx . shippingAddress ?. first_name ?? "" }
155+ lastName = { ctx . shippingAddress ?. last_name ?? "" }
156+ city = { ctx . shippingAddress ?. city ?? "" }
157+ line1 = { ctx . shippingAddress ?. line_1 ?? "" }
158+ line2 = { ctx . shippingAddress ?. line_2 ?? "" }
159+ zipCode = { ctx . shippingAddress ?. zip_code ?? "" }
160+ stateCode = { ctx . shippingAddress ?. state_code ?? "" }
161+ countryCode = {
162+ ctx . shippingAddress ?. country_code ?? ""
163+ }
164+ phone = { ctx . shippingAddress ?. phone ?? "" }
165+ addressType = "shipping"
166+ />
167+ </ RecapBox >
168+ </ div >
169+ ) }
170+ </ >
167171 </ AddressContainer >
168172 </ RecapCol >
169173
0 commit comments