Skip to content

Commit

Permalink
Merge pull request #599 from Adyen/fix/bacs_translation_change
Browse files Browse the repository at this point in the history
Changed key used for translation on email field
  • Loading branch information
sponglord authored Dec 11, 2020
2 parents b0e88a9 + 560e2ac commit 07563ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/lib/src/components/BacsDD/components/BacsInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ function BacsInput(props: BacsInputProps) {
</div>

<Field
errorMessage={!!errors.shopperEmail && i18n.get('bacs.shopperEmail.invalid')}
label={i18n.get('bacs.shopperEmail')}
errorMessage={!!errors.shopperEmail && i18n.get('shopperEmail.invalid')}
label={i18n.get('shopperEmail')}
className={classNames({
'adyen-checkout__bacs--shopper-email': true,
'adyen-checkout__field--inactive': status === CONFIRM_STATE || status === 'loading'
Expand All @@ -224,7 +224,7 @@ function BacsInput(props: BacsInputProps) {
placeholder: props.placeholders.shopperEmail,
spellcheck: false,
'aria-invalid': !valid.shopperEmail,
'aria-label': i18n.get('bacs.shopperEmail'),
'aria-label': i18n.get('shopperEmail'),
'aria-required': 'true',
required: true,
readonly: status === CONFIRM_STATE || status === 'loading',
Expand Down

0 comments on commit 07563ca

Please sign in to comment.