Skip to content

Commit

Permalink
PWA-3276:[feature]: Extending Peregrine Talons for Custom Applications
Browse files Browse the repository at this point in the history
  • Loading branch information
glo11372 committed Aug 6, 2024
1 parent 36f451b commit 45305c9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/peregrine/lib/talons/SignIn/useSignIn.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ export const useSignIn = props => {

const apolloClient = useApolloClient();
const [isSigningIn, setIsSigningIn] = useState(false);
const cartContext = useCartContext();

const cartContext = useCartContext();
const [
{ cartId },
{ createCart, removeCart, getCartDetails }
] = cartContext;

const userContext = useUserContext();
const userContext = useUserContext();
const [
{ isGettingDetails, getDetailsError },
{ getUserDetails, setToken }
Expand All @@ -59,7 +59,7 @@ export const useSignIn = props => {
generateReCaptchaData,
recaptchaLoading,
recaptchaWidgetProps
} = googleReCaptcha
} = googleReCaptcha;

const [fetchCartId] = useMutation(createCartMutation);
const [mergeCarts] = useMutation(mergeCartsMutation);
Expand Down Expand Up @@ -239,6 +239,5 @@ export const useSignIn = props => {
mergeCarts,
fetchUserDetails,
fetchCartDetails

};
};

0 comments on commit 45305c9

Please sign in to comment.