From 416dfb239d2766007a465b732027c66c160a4640 Mon Sep 17 00:00:00 2001 From: Grant Fitzsimmons <37256050+grantfitzsimmons@users.noreply.github.com> Date: Sat, 18 Jan 2025 23:41:04 +0000 Subject: [PATCH] Lint code with ESLint and Prettier Triggered by 81067b54830456c54c3e1e6fe8d30fc81739ba08 on branch refs/heads/issue-6108 --- .../components/FormCommands/ShowTransactions.tsx | 14 +++++++------- .../js_src/lib/localization/interactions.ts | 3 ++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/specifyweb/frontend/js_src/lib/components/FormCommands/ShowTransactions.tsx b/specifyweb/frontend/js_src/lib/components/FormCommands/ShowTransactions.tsx index ca14dfe5c09..c8cae269c4d 100644 --- a/specifyweb/frontend/js_src/lib/components/FormCommands/ShowTransactions.tsx +++ b/specifyweb/frontend/js_src/lib/components/FormCommands/ShowTransactions.tsx @@ -143,13 +143,7 @@ export function ShowLoansCommand({ icon={icons.chat} onClose={handleClose} > - {!hasAnyInteractions ? ( - <> - {interactionsText.noInteractions({ - preparationTable: String(tables.Preparation.label).toLowerCase(), - })} - - ) : ( + {hasAnyInteractions ? ( <> {Array.isArray(data.openLoans) && data.openLoans.length > 0 && ( <> @@ -242,6 +236,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 d3c1eec5565..d3816497c13 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',