Skip to content

Commit 73cc2d3

Browse files
committed
fix
1 parent 73c9f73 commit 73cc2d3

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

packages/react/src/modules/guide/components/Toolbar/V2/GuideRow.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,23 @@ export const GuideRow = ({ guide, orderIndex }: Props) => {
4949
</Stack>
5050

5151
<Stack justify="flex-end">
52-
{guide.__typename === "Guide" && (
52+
{!isUnknownGuide(guide) && (
5353
<Stack gap="1">
5454
<Tooltip
5555
label="Current location does not match the activation conditions"
56-
enabled={!guide.inspection.activatable.status}
56+
enabled={!guide.annotation.activatable.status}
5757
>
5858
<Button
5959
px="1"
6060
size="1"
6161
variant="soft"
62-
color={guide.inspection.activatable.status ? "green" : "red"}
62+
color={guide.annotation.activatable.status ? "green" : "red"}
6363
leadingIcon={{ icon: LocateFixed, alt: "Target" }}
6464
/>
6565
</Tooltip>
6666
</Stack>
6767
)}
68-
{guide.__typename === "Guide" && (
68+
{!isUnknownGuide(guide) && (
6969
<Stack px="1" align="center">
7070
<Box h="3" borderLeft="px" borderColor="gray-6" />
7171
</Stack>

packages/react/src/modules/guide/components/Toolbar/V2/V2.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ const GuidesList = ({
2929
return guides.map((guide, idx) => {
3030
if (
3131
displayOption === "current-page" &&
32-
!guide.annotation.isEligible &&
33-
!guide.annotation.isQualified
32+
(!guide.annotation.isEligible || !guide.annotation.isQualified)
3433
) {
3534
return null;
3635
}

0 commit comments

Comments
 (0)