Skip to content

Commit

Permalink
Fixed handle trigger click function error
Browse files Browse the repository at this point in the history
  • Loading branch information
del22123 committed Dec 12, 2024
1 parent 8087fe0 commit aef1132
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions packages/peregrine/lib/talons/SignIn/useSignIn.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const REDIRECT_FOR_ROUTES = ['/checkout', '/order-confirmation'];

export const useSignIn = props => {
const {
handleTriggerClick,
getCartDetailsQuery,
setDefaultUsername,
showCreateAccount,
Expand Down Expand Up @@ -95,7 +94,6 @@ export const useSignIn = props => {
const handleSubmit = useCallback(
async ({ email, password }) => {
setIsSigningIn(true);
handleTriggerClick();

try {
// Get source cart id (guest cart id).
Expand Down Expand Up @@ -184,7 +182,6 @@ export const useSignIn = props => {
getCartDetails,
fetchCartDetails,
dispatch,
handleTriggerClick,
history,
location.pathname,
userOnOrderSuccess
Expand Down
2 changes: 0 additions & 2 deletions packages/venia-ui/lib/components/SignIn/signIn.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import GoogleRecaptcha from '../GoogleReCaptcha';
const SignIn = props => {
const classes = useStyle(defaultClasses, props.classes);
const {
handleTriggerClick,
setDefaultUsername,
showCreateAccount,
showForgotPassword,
Expand All @@ -28,7 +27,6 @@ const SignIn = props => {

const { formatMessage } = useIntl();
const talonProps = useSignIn({
handleTriggerClick,
getCartDetailsQuery: GET_CART_DETAILS_QUERY,
setDefaultUsername,
showCreateAccount,
Expand Down

0 comments on commit aef1132

Please sign in to comment.