Home > @vsf-enterprise/sapcc > useUserAddressesComposable > setDefaultAddress

useUserAddressesComposable.setDefaultAddress property

A syntactic sugar method for setting user address as default. Calls updateAddress with address: { id: props.addressId, defaultAddress: true } under the hood

Signature:

setDefaultAddress: (props: SetDefaultUserAddressProps) => Promise<void>;