Skip to content

Commit 965edb9

Browse files
authored
fix: wrong translation used on SendConfirmation (#6481)
### Description Wrong translation was used on the SendConfirmation screen. ### Test plan <img src="https://github.com/user-attachments/assets/d3446e34-964b-4fa1-b82e-8011a2e7f6aa" width="400" /> ### Related issues N/A ### Backwards compatibility Yes ### Network scalability If a new NetworkId and/or Network are added in the future, the changes in this PR will: - [x] Continue to work without code changes, OR trigger a compilation error (guaranteeing we find it when a new network is added)
1 parent 7487b89 commit 965edb9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/send/SendConfirmation.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ describe('SendConfirmation', () => {
144144
// renders fee details
145145
expect(getByTestId('SendConfirmationFee/Label')).toHaveTextContent('networkFee')
146146
expect(getByTestId('SendConfirmationFee/Value')).toHaveTextContent(
147-
'tokenAndLocalAmountApprox_oneToken, {"tokenAmount":"0.01","localAmount":"0.067","tokenSymbol":"CELO","localCurrencySymbol":"₱"}'
147+
'tokenAndLocalAmountApprox, {"tokenAmount":"0.01","localAmount":"0.067","tokenSymbol":"CELO","localCurrencySymbol":"₱"}'
148148
)
149149

150150
// renders total details

src/send/SendConfirmation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export default function SendConfirmation(props: Props) {
188188
isLoading={prepareTransactionLoading}
189189
value={
190190
<Trans
191-
i18nKey={'tokenAndLocalAmountApprox_oneToken'}
191+
i18nKey={'tokenAndLocalAmountApprox'}
192192
context={localFeeAmount?.gt(0) ? undefined : 'noFiatPrice'}
193193
tOptions={{
194194
tokenAmount: networkFeeDisplayAmount.token,

0 commit comments

Comments
 (0)