From 4d00cf197efa4874b08cdebc469db2e14194c20e Mon Sep 17 00:00:00 2001 From: Vu Nguyen Date: Tue, 23 Jun 2020 18:49:01 +0700 Subject: [PATCH] refactor: #1325 Fix logic checking if revision detail data is existed --- .../developer-app-revision-modal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/marketplace/src/components/ui/developer-app-revision-modal/developer-app-revision-modal.tsx b/packages/marketplace/src/components/ui/developer-app-revision-modal/developer-app-revision-modal.tsx index 5d8ac4f527..31c3909dd1 100644 --- a/packages/marketplace/src/components/ui/developer-app-revision-modal/developer-app-revision-modal.tsx +++ b/packages/marketplace/src/components/ui/developer-app-revision-modal/developer-app-revision-modal.tsx @@ -105,12 +105,12 @@ export const DeveloperAppRevisionModal: React.FC const loginIdentity = useSelector(selectLoginIdentity) const revisionsData = revisions?.data const latestAppRevisionId = revisionsData && revisionsData[0].id - const { declineFormState } = revisionDetailState + const { declineFormState, revisionDetailData } = revisionDetailState const isDeclining = declineFormState === 'SUBMITTING' const isDeclinedSuccessfully = declineFormState === 'SUCCESS' let hasRevisionDetailData = false - if (revisionDetailState) { + if (revisionDetailData) { hasRevisionDetailData = true }