Skip to content

Commit 6a64acc

Browse files
committed
more touch up
1 parent 5771924 commit 6a64acc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/react/src/modules/guide/components/Toolbar/V2/useInspectGuideClientStore.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ const inferSelectByKeyReturnStatus = (
139139
}
140140

141141
// If resolved, expect this guide to be returned unless being throttled.
142-
if (stage.resolved === guide.key) {
142+
if (guide.key === stage.resolved) {
143143
if (snapshot.throttled && !includeThrottled) {
144144
return "throttled";
145145
}
@@ -175,15 +175,15 @@ const inferSelectOneByTypeReturnStatus = (
175175
const guides = [...result.values()];
176176
const first = guides[0]!;
177177

178-
if (first.key !== guide.key) {
178+
if (guide.key !== first.key) {
179179
// Being shadowed by another guide with higher priority.
180180
return "queried";
181181
}
182182
return "returned";
183183
}
184184

185185
// If resolved, expect this guide to be returned unless being throttled.
186-
if (stage.resolved === guide.key) {
186+
if (guide.key === stage.resolved) {
187187
if (snapshot.throttled && !includeThrottled) {
188188
return "throttled";
189189
}

0 commit comments

Comments
 (0)