diff --git a/specifyweb/frontend/js_src/lib/components/FormCommands/ShowTransactions.tsx b/specifyweb/frontend/js_src/lib/components/FormCommands/ShowTransactions.tsx index ca14dfe5c09..fc985f2d95e 100644 --- a/specifyweb/frontend/js_src/lib/components/FormCommands/ShowTransactions.tsx +++ b/specifyweb/frontend/js_src/lib/components/FormCommands/ShowTransactions.tsx @@ -144,11 +144,6 @@ export function ShowLoansCommand({ onClose={handleClose} > {!hasAnyInteractions ? ( - <> - {interactionsText.noInteractions({ - preparationTable: String(tables.Preparation.label).toLowerCase(), - })} - ) : ( <> {Array.isArray(data.openLoans) && data.openLoans.length > 0 && ( @@ -242,6 +237,12 @@ export function ShowLoansCommand({ )} + ) : ( + <> + {interactionsText.noInteractions({ + preparationTable: String(tables.Preparation.label).toLowerCase(), + })} + )} ) : null; diff --git a/specifyweb/frontend/js_src/lib/localization/interactions.ts b/specifyweb/frontend/js_src/lib/localization/interactions.ts index 139d7733de4..5ecb32837d4 100644 --- a/specifyweb/frontend/js_src/lib/localization/interactions.ts +++ b/specifyweb/frontend/js_src/lib/localization/interactions.ts @@ -19,7 +19,8 @@ export const interactionsText = createDictionary({ }, noInteractions: { comment: 'Example: There are no interactions linked to this {preparation}', - 'en-us': 'There are no interactions linked to this {preparationTable:string}.', + 'en-us': + 'There are no interactions linked to this {preparationTable:string}.', }, addItems: { 'en-us': 'Add Items',