Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed handle trigger click function error #4363

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading