File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ const PolicyGroup: React.FC<PolicyGroupProps> = ({
156
156
] )
157
157
}
158
158
159
- if ( res . winner ) {
159
+ if ( ' winner' in res ) {
160
160
const testResult = ( res as UrlTestPolicyTestResult ) . results [ 0 ] . data
161
161
162
162
Object . keys ( testResult ) . forEach ( ( key ) => {
@@ -176,6 +176,7 @@ const PolicyGroup: React.FC<PolicyGroupProps> = ({
176
176
setSelection ( ( res as UrlTestPolicyTestResult ) . winner )
177
177
} else {
178
178
const testResult = res as SelectPolicyTestResult
179
+
179
180
Object . keys ( testResult ) . forEach ( ( key ) => {
180
181
const result = testResult [ key ]
181
182
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export const usePolicyPerformance = () => {
11
11
const isSupported = useVersionSupport ( {
12
12
ios : '4.9.5' ,
13
13
macos : '4.2.4' ,
14
+ tvos : '4.9.5' ,
14
15
} )
15
16
const { data, error } = useSWR < PolicyBenchmarkResults > (
16
17
isSupported ? '/policies/benchmark_results' : null ,
You can’t perform that action at this time.
0 commit comments