Skip to content

Commit

Permalink
Merge pull request #457 from commercelayer/fix/thank-you-page-reload
Browse files Browse the repository at this point in the history
Adjust logic on step complete on page reload
  • Loading branch information
malessani committed Apr 2, 2024
2 parents 501f3a7 + 2722bda commit 5de7adb
Show file tree
Hide file tree
Showing 3 changed files with 282 additions and 269 deletions.
2 changes: 1 addition & 1 deletion components/composite/StepComplete/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const StepComplete: React.FC<Props> = ({
}
}, [thankyouPageUrl])

if (!ctx || !settings) return null
if (!ctx) return null

const handleClick = () => {
ctx?.returnUrl && (document.location.href = ctx?.returnUrl)
Expand Down
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@
"commercelayer"
],
"dependencies": {
"@commercelayer/organization-config": "^1.4.2",
"@commercelayer/react-components": "^4.11.3",
"@commercelayer/sdk": "^5.35.0",
"@commercelayer/organization-config": "^1.4.5",
"@commercelayer/react-components": "^4.12.0",
"@commercelayer/sdk": "^5.36.0",
"@faker-js/faker": "^8.4.1",
"@headlessui/react": "^1.7.18",
"@next/bundle-analyzer": "^14.1.4",
Expand All @@ -82,12 +82,12 @@
"@tailwindcss/forms": "^0.5.7",
"@types/async-retry": "1.4.8",
"@types/jsonwebtoken": "^9.0.6",
"@types/node": "^20.11.30",
"@types/react": "^18.2.67",
"@types/node": "^20.12.2",
"@types/react": "^18.2.74",
"@types/react-gtm-module": "^2.0.3",
"@types/styled-components": "^5.1.34",
"async-retry": "^1.3.3",
"autoprefixer": "^10.4.18",
"autoprefixer": "^10.4.19",
"babel-plugin-macros": "^3.1.0",
"babel-plugin-styled-components": "^2.1.4",
"classnames": "^2.5.1",
Expand All @@ -100,16 +100,16 @@
"next": "^14.1.4",
"next-build-id": "^3.0.0",
"next-i18next": "^15.2.0",
"postcss": "^8.4.37",
"postcss": "^8.4.38",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-gtm-module": "^2.0.11",
"react-i18next": "^14.1.0",
"react-router-dom": "^6.22.3",
"styled-components": "^6.1.8",
"tailwindcss": "^3.4.1",
"tailwindcss": "^3.4.3",
"twin.macro": "^3.4.1",
"typescript": "^5.4.2"
"typescript": "^5.4.3"
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.3",
Expand All @@ -118,8 +118,8 @@
"@semantic-release/github": "^10.0.2",
"@semantic-release/npm": "^12.0.0",
"@semantic-release/release-notes-generator": "^12.1.0",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"eslint": "^8.57.0",
"eslint-config-next": "^14.1.4",
"eslint-config-prettier": "^9.1.0",
Expand All @@ -131,11 +131,11 @@
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-tailwind": "^0.2.1",
"npm-check-updates": "^16.14.17",
"npm-check-updates": "^16.14.18",
"prettier": "^3.2.5",
"semantic-release": "^23.0.5",
"semantic-release": "^23.0.6",
"serve": "^14.2.1",
"stylelint": "^16.2.1",
"stylelint": "^16.3.1",
"stylelint-config-standard": "^36.0.0"
},
"resolutions": {
Expand All @@ -149,4 +149,4 @@
"cacheDirectories": [
".next/cache"
]
}
}
Loading

0 comments on commit 5de7adb

Please sign in to comment.