Skip to content

Commit 7c18bc6

Browse files
committed
Addressing comments
1 parent 470157a commit 7c18bc6

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

packages/template-retail-react-app/app/hooks/use-current-customer.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,7 @@ import {useCustomer, useCustomerId, useCustomerType} from '@salesforce/commerce-
1414
export const useCurrentCustomer = () => {
1515
const customerId = useCustomerId()
1616
const {isRegistered, isGuest, customerType} = useCustomerType()
17-
const query = useCustomer(
18-
{
19-
parameters: {
20-
customerId,
21-
expand: ['paymentmethodreferences']
22-
}
23-
},
24-
{enabled: !!customerId && isRegistered}
25-
)
17+
const query = useCustomer({parameters: {customerId}}, {enabled: !!customerId && isRegistered})
2618
const value = {
2719
...query,
2820
data: {

0 commit comments

Comments
 (0)