@hmcts/ccd-case-ui-toolkit 7.2.54-3455-rc5 → 7.2.54-3455-rc6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9325,7 +9325,7 @@ class CaseEditComponent {
|
|
|
9325
9325
|
}
|
|
9326
9326
|
// if the url contains /submit there is the potential that the user has gone straight to the submit page
|
|
9327
9327
|
// we should try and work out if they have been through the journey or not and prevent them submitting directly
|
|
9328
|
-
if (this.router.url.
|
|
9328
|
+
if (this.router.url.includes('/submit') && !this.initialUrl) {
|
|
9329
9329
|
// we only want to check if the user has done this if there is a multi-page journey
|
|
9330
9330
|
if (this.eventTrigger.wizard_pages && this.eventTrigger.wizard_pages.length > 0) {
|
|
9331
9331
|
const firstPage = this.eventTrigger.wizard_pages.reduce((min, page) => page.order < min.order ? page : min, this.eventTrigger.wizard_pages[0]);
|