cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to procced from shipping address checkout flow version 3.0.1

0 Kudos
324

Hi all,

I am triggering the form submit method in the Spartacus method. Problem here is when I clear the cache and cookie in my browser. The very first time the second call happens first and the first call happens as second. even though I put async await in the dispatch event it does not help to resolve my problem.

The problem here is verify address does not return response because its return type void i want the response from this method does any one know how to change it as observable?

<code>verifyAddress(address: Address): void {
        if (this.actionAllowed()) {
          let userId;
          this.userIdService
            .getUserId()
            .subscribe((occUserId) => (userId = occUserId))
            .unsubscribe();
          if (userId) {
            this.checkoutStore.dispatch(
              new CheckoutActions.VerifyAddress({
                userId,
                address,
              })
            );
          }
        }
      }

Accepted Solutions (0)

Answers (0)