This repository was archived by the owner on Jul 12, 2024. It is now read-only.

Description
Describe the bug
WC Ship install prompt on order edit page does not work and generates a JS error.
To Reproduce
Steps to reproduce the behavior:
- Create store without WCS installed
- Set up store for order page prompt to install:
a. WCS not installed
b. U.S. Based
c. No extra shipping extensions installed (e.g. 'UPS' live rates)
d. Add shippable product
- Create order for shippable product
- Go to order edit page
- See shipping banner
- Click "Create shipping label"
- See error
Expected behavior
WC Ship label prompt should open after WCS is installed/activated/loaded.
Screenshots
When the "create shipping label" button is pressed, it stays in the loading state forever:

And a JS error is generated:
