Skip to content

Commit

Permalink
fix: change submit cta text for experiment (openedx#1179)
Browse files Browse the repository at this point in the history
  • Loading branch information
syedsajjadkazmii authored Feb 29, 2024
1 parent d6c5415 commit 80435d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/register/data/optimizelyExperiment/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const shouldDisplayFieldInExperiment = (fieldName, expVariation, register
export const getRegisterButtonLabelInExperiment = (
existingButtonLabel, expVariation, registerPageStep, formatMessage,
) => {
if (expVariation === SIMPLIFIED_REGISTRATION_VARIATION && registerPageStep === FIRST_STEP) {
if (expVariation === SIMPLIFIED_REGISTRATION_VARIATION && registerPageStep === SECOND_STEP) {
return formatMessage(messages['simplified.registration.exp.button']);
}
return existingButtonLabel;
Expand Down
2 changes: 1 addition & 1 deletion src/register/messages.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ const messages = defineMessages({
// Simplify Registration experiment
'simplified.registration.exp.button': {
id: 'simplified.registration.exp.button',
defaultMessage: 'Continue',
defaultMessage: 'Complete account creation',
description: 'Label text for simplified registration page second step',
},
'simplify.registration.username.guideline.content': {
Expand Down

0 comments on commit 80435d3

Please sign in to comment.