File tree Expand file tree Collapse file tree
packages/react/src/modules/guide/components/Toolbar/V2 Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments