Skip to content

Commit 27bed72

Browse files
authored
fix(app): firmware update modal copy update (#11088)
closes #11075
1 parent bb567aa commit 27bed72

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

app/src/assets/localization/en/device_details.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
"recalibrate_now": "Recalibrate now",
9090
"deck_cal_missing": "Pipette Offset calibration missing. Calibrate deck first.",
9191
"an_error_occurred_while_updating_please_try_again": "An error occurred while updating your pipette's settings. Please try again.",
92+
"an_error_occurred_while_updating_module": "An error occurred while updating your {{moduleName}}. Please try again.",
9293
"deck_slot": "deck slot {{slot}}",
9394
"robot_control_not_available": "Some robot controls are not available when run is in progress",
9495
"an_error_occurred_while_updating": "An error occurred while updating your pipette's settings.",

app/src/organisms/ModuleCard/FirmwareUpdateFailedModal.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as React from 'react'
22
import { useTranslation } from 'react-i18next'
3+
import { getModuleDisplayName } from '@opentrons/shared-data'
34
import {
45
DIRECTION_ROW,
56
Flex,
@@ -49,7 +50,9 @@ export const FirmwareUpdateFailedModal = (
4950
data-testid={`FirmwareUpdateFailedModal_body_text_${module.serialNumber}`}
5051
>
5152
<Text paddingBottom={SPACING.spacing2}>
52-
{t('an_error_occurred_while_updating_please_try_again')}
53+
{t('an_error_occurred_while_updating_module', {
54+
moduleName: getModuleDisplayName(module.moduleModel),
55+
})}
5356
</Text>
5457
<Text>{errorMessage}</Text>
5558
</Flex>

app/src/organisms/ModuleCard/__tests__/FirmwareUpdateFailedModal.test.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ describe('FirmwareUpdateFailedModal', () => {
2626
it('should render the correct header and body', () => {
2727
const { getByText } = render(props)
2828
getByText('Failed to update module firmware')
29+
getByText(
30+
'An error occurred while updating your Temperature Module GEN1. Please try again.'
31+
)
2932
getByText('error message')
3033
})
3134
it('should call onCloseClick when the close button is pressed', () => {

0 commit comments

Comments
 (0)