danslo / danslo/CleanCheckout

Cannot read property 'method_code' of null

Open
#79 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
265
Forks
59
PR merge metrics
No merged PRs in 30d

Description

Hi, We're getting an error when we switch between countries at the Shipping section of the checkout.
An example would be switching from United Kingdom to any other country and back again.
The first time it works fine but switching back we get this console error.
Because of this error the loader does not disappear and we cannot use the rest of the checkout.

Console Error:

> select-shipping-method-mixin.js:45 Uncaught TypeError: Cannot read property 'method_code' of null
at select-shipping-method-mixin.js:45
at Object.resolveShippingRates (checkout-data-resolver.js:173)
at Object.setShippingRates (shipping-service.js:25)
at Object. (new-address.js:59)
at fire (jquery.js:3232)
at Object.fireWith [as resolveWith] (jquery.js:3362)
at done (jquery.js:9840)
at XMLHttpRequest.callback (jquery.js:10311)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.