Skip to content

Commit

Permalink
fix(dashboard): remov errorneous double buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
seaerchin committed Oct 21, 2022
1 parent 2ea73c4 commit a36e763
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/layouts/ReviewRequest/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,11 @@ export const ReviewRequestDashboard = (): JSX.Element => {
</Popover>
</HStack>
<Spacer />
<CancelRequestButton isApproved={isApproved} />
<ApprovalButton isApproved={isApproved} />
{role === "requestor" ? (
<CancelRequestButton isApproved={isApproved} />
) : (
<ApprovalButton isApproved={isApproved} />
)}
</Flex>
<SecondaryDetails
requestor={data?.requestor || ""}
Expand Down

0 comments on commit a36e763

Please sign in to comment.