Skip to content

Commit 09ca69a

Browse files
committed
Always show back-to-review btn
#10132
1 parent 0036bc2 commit 09ca69a

File tree

1 file changed

+27
-31
lines changed

1 file changed

+27
-31
lines changed

packages/client/src/views/RegisterForm/RegisterForm.tsx

Lines changed: 27 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,37 +1211,33 @@ class RegisterFormView extends React.Component<FullProps, State> {
12111211
)}
12121212
</Button>
12131213
),
1214-
declaration.review && (
1215-
<Button
1216-
id="back-to-review-button"
1217-
key="back-to-review-button"
1218-
type="secondary"
1219-
size="large"
1220-
className="item"
1221-
fullWidth
1222-
onClick={() => {
1223-
this.continueButtonHandler(
1224-
this.props.pageRoute,
1225-
declaration.id,
1226-
declaration.submissionStatus &&
1227-
declaration.submissionStatus ===
1228-
SUBMISSION_STATUS.DRAFT
1229-
? 'preview'
1230-
: 'review',
1231-
declaration.submissionStatus &&
1232-
declaration.submissionStatus ===
1233-
SUBMISSION_STATUS.DRAFT
1234-
? 'preview-view-group'
1235-
: 'review-view-group',
1236-
declaration.event.toLowerCase()
1237-
)
1238-
}}
1239-
>
1240-
{intl.formatMessage(
1241-
messages.backToReviewButton
1242-
)}
1243-
</Button>
1244-
)
1214+
<Button
1215+
id="back-to-review-button"
1216+
key="back-to-review-button"
1217+
type="secondary"
1218+
size="large"
1219+
className="item"
1220+
fullWidth
1221+
onClick={() => {
1222+
this.continueButtonHandler(
1223+
this.props.pageRoute,
1224+
declaration.id,
1225+
declaration.submissionStatus &&
1226+
declaration.submissionStatus ===
1227+
SUBMISSION_STATUS.DRAFT
1228+
? 'preview'
1229+
: 'review',
1230+
declaration.submissionStatus &&
1231+
declaration.submissionStatus ===
1232+
SUBMISSION_STATUS.DRAFT
1233+
? 'preview-view-group'
1234+
: 'review-view-group',
1235+
declaration.event.toLowerCase()
1236+
)
1237+
}}
1238+
>
1239+
{intl.formatMessage(messages.backToReviewButton)}
1240+
</Button>
12451241
].filter(Boolean) as React.ReactElement[]
12461242
}
12471243
>

0 commit comments

Comments
 (0)