Skip to content

Commit b5161c8

Browse files
fix(l10n): use localized string for secondary email none status
Currently, when no secondary email is set, the status displays a hardcoded 'None' instead of using the localized 'se-secondary-email-none' string. This restores the intended behavior and fixes a minor l10n regression. Closes #18685
1 parent 13712ad commit b5161c8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • packages/fxa-settings/src/components/Settings/UnitRowSecondaryEmail

packages/fxa-settings/src/components/Settings/UnitRowSecondaryEmail/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,11 @@ export const UnitRowSecondaryEmail = () => {
191191
header={l10n.getString('se-heading', null, 'Secondary email')}
192192
headerId="secondary-email"
193193
prefixDataTestId="secondary-email"
194+
defaultHeaderValueText={l10n.getString(
195+
'se-secondary-email-none',
196+
null,
197+
'None'
198+
)}
194199
route={`${SETTINGS_PATH}/emails`}
195200
ctaOnClickAction={() => GleanMetrics.accountPref.secondaryEmailSubmit()}
196201
{...{

0 commit comments

Comments
 (0)