Skip to content

Commit

Permalink
refactor: #1325 Fix logic checking if revision detail data is existed
Browse files Browse the repository at this point in the history
  • Loading branch information
Vu Nguyen committed Jun 23, 2020
1 parent 1b7a63e commit 4d00cf1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ export const DeveloperAppRevisionModal: React.FC<DeveloperAppRevisionModalProps>
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
}

Expand Down

0 comments on commit 4d00cf1

Please sign in to comment.