Skip to content

Commit

Permalink
fix(app): update copy to use correct parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhuff committed Oct 29, 2024
1 parent 5eab60c commit c753bc5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/src/assets/localization/en/error_recovery.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
"remove_any_attached_tips": "Remove any attached tips",
"replace_tips_and_select_loc_partial_tip": "Replace tips and select the last location used for partial tip pickup.",
"replace_tips_and_select_location": "It's best to replace tips and select the last location used for tip pickup.",
"replace_used_tips_in_rack_location": "Replace used tips in rack location {{location}} in Slot {{slot}}",
"replace_with_new_tip_rack": "Replace with new tip rack in Slot {{slot}}",
"replace_used_tips_in_rack_location": "Replace used tips in rack location {{location}} in {{slot}}",
"replace_with_new_tip_rack": "Replace with new tip rack in {{slot}}",
"resume": "Resume",
"retry_dropping_tip": "Retry dropping tip",
"retry_now": "Retry now",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { RecoverySingleColumnContentWrapper } from './RecoveryContentWrapper'
import { TwoColumn, DeckMapContent } from '/app/molecules/InterventionModal'
import { RecoveryFooterButtons } from './RecoveryFooterButtons'
import { LeftColumnLabwareInfo } from './LeftColumnLabwareInfo'
import { getSlotNameAndLwLocFrom } from '../hooks/useDeckMapUtils'
import { RECOVERY_MAP } from '../constants'

import type * as React from 'react'
Expand Down Expand Up @@ -46,8 +45,9 @@ export function TwoColLwInfoAndDeck(
void proceedNextStep()
}

const [slot] = getSlotNameAndLwLocFrom(failedLabware?.location ?? null, false)
console.log('=>(TwoColLwInfoAndDeck.tsx:50) slot', slot)
const {
displayNameCurrentLoc: slot,
} = failedLabwareUtils.failedLabwareLocations

const buildTitle = (): string => {
switch (selectedRecoveryOption) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ describe('TwoColLwInfoAndDeck', () => {
failedLabwareUtils: {
relevantWellName: 'A1',
failedLabware: { location: 'C1' },
failedLabwareLocations: { newLoc: {}, currentLoc: {} },
failedLabwareLocations: {
newLoc: {},
currentLoc: {},
displayNameCurrentLoc: 'Slot C1',
},
},
deckMapUtils: {
movedLabwareDef: {},
Expand Down

0 comments on commit c753bc5

Please sign in to comment.