From 340e7c78b48b694e4153fb6b97d4b9a370e0041c Mon Sep 17 00:00:00 2001 From: Yury Saukou Date: Wed, 18 Dec 2024 17:59:25 +0400 Subject: [PATCH] update tests --- src/TitleDetails/TitleDetails.js | 2 +- .../TitleDetailsExpectedActions.js | 16 ++++---- .../TitleDetailsExpectedActions.test.js | 41 +++++++++++++++++-- 3 files changed, 47 insertions(+), 12 deletions(-) diff --git a/src/TitleDetails/TitleDetails.js b/src/TitleDetails/TitleDetails.js index b2a0556e..412e111a 100644 --- a/src/TitleDetails/TitleDetails.js +++ b/src/TitleDetails/TitleDetails.js @@ -316,10 +316,10 @@ const TitleDetails = ({ const expectedPiecesActions = useMemo(() => ( - {(!hiddenActions?.[EXPECTED_PIECES_ACTION_NAMES.addPiece]) && ( + {(!actionsHidden?.[EXPECTED_PIECES_ACTION_NAMES.addPiece]) && ( )} - {(!hiddenActions?.[EXPECTED_PIECES_ACTION_NAMES.receive]) && ( + {(!actionsHidden?.[EXPECTED_PIECES_ACTION_NAMES.receive]) && (