MCPcopy Create free account
hub / github.com/TryCatchLearn/Restore-v2 / formatAddressString

Function formatAddressString

client/src/lib/util.ts:17–20  ·  view source on GitHub ↗
(address: ShippingAddress)

Source from the content-addressed store, hash-verified

15}
16
17export const formatAddressString = (address: ShippingAddress) => {
18 return `${address?.name}, ${address?.line1}, ${address?.city}, ${address?.state},
19 ${address?.postal_code}, ${address?.country}`
20}
21
22export const formatPaymentString = (card: PaymentSummary) => {
23 return `${card?.brand?.toUpperCase()}, **** **** **** ${card?.last4},

Callers 2

CheckoutSuccessFunction · 0.90
OrderDetailedPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected