From 56130edb89abe7757f184de620b93a0b16dfa69e Mon Sep 17 00:00:00 2001 From: Deborah Kaplan Date: Fri, 29 Sep 2023 21:39:03 +0000 Subject: [PATCH] feat: felt uncomfortable about my decision to leave in the stub code FIXES: APER-2190 --- .../ProgramRecord/ProgramRecord.jsx | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/components/ProgramRecord/ProgramRecord.jsx b/src/components/ProgramRecord/ProgramRecord.jsx index 90dd5aeb..bb881cdf 100644 --- a/src/components/ProgramRecord/ProgramRecord.jsx +++ b/src/components/ProgramRecord/ProgramRecord.jsx @@ -28,9 +28,6 @@ function ProgramRecord({ isPublic }) { const [recordDetails, setRecordDetails] = useState({}); const [isLoaded, setIsLoaded] = useState(false); const [hasNoData, setHasNoData] = useState(false); - // Leaving a stub value in for a method that's ticketed to fix - // eslint-disable-next-line no-unused-vars - const [isNotFound, setNotFound] = useState(false); const [showSendRecordButton, setShowSendRecordButton] = useState(false); const [sendRecord, setSendRecord] = useState({ @@ -178,19 +175,6 @@ function ProgramRecord({ isPublic }) { ); - const renderNotFound = () => ( - <> - {!isPublic && renderBackButton()} -

- -

- - ); - const renderLoading = () => ( <> {!isPublic && renderBackButton()} @@ -209,9 +193,6 @@ function ProgramRecord({ isPublic }) { if (hasNoData) { return renderCredentialsServiceIssueAlert(); } - if (isNotFound) { - return renderNotFound(); - } return renderProgramDetails(); } return renderLoading();