Skip to content
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed

- Wait for orderForm before calling functions (PO Number)

## [1.11.1] - 2023-12-15

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion checkout-ui-custom/checkout6-custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ const MAX_TIME_EXPIRATION = 1000 * 60 * 5 // 5 minutes

// Wait until it have the vtex runtime to call the functions
checkVtex = setInterval(function () {
if (window.vtex !== undefined && window.vtex.renderRuntime !== undefined) {
if (window.vtex !== undefined && window.vtex.renderRuntime !== undefined && window.vtexjs?.checkout?.orderForm !== undefined) {
clearInterval(checkVtex)
if (isWorkspace() || !settings) {
fetchSettings()
Expand Down