Skip to content

Commit

Permalink
1109 (#1141)
Browse files Browse the repository at this point in the history
Added iban trimmed value on click copy button
  • Loading branch information
AnzheloD authored and dimitur2204 committed Nov 21, 2022
1 parent 65f5bf5 commit d3cab28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/common/BankTransfer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ const StyledGrid = styled(Grid)(() => ({
export const BankTransfer = () => {
const { t } = useTranslation()

const trimmedIban = ibanNumber.replace(/\s/g, '')

return (
<StyledGrid container justifyContent="space-between" className={classes.firstRow}>
<Grid item xs={12}>
Expand All @@ -41,7 +43,7 @@ export const BankTransfer = () => {
</Typography>
</Grid>
<Grid item>
<CopyTextButton text={ibanNumber} label="support:cta.copy-number" />
<CopyTextButton text={trimmedIban} label="support:cta.copy-number" />
</Grid>
</Grid>
</Grid>
Expand Down

0 comments on commit d3cab28

Please sign in to comment.