File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 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> = ({
156156 ] )
157157 }
158158
159- if ( res . winner ) {
159+ if ( ' winner' in res ) {
160160 const testResult = ( res as UrlTestPolicyTestResult ) . results [ 0 ] . data
161161
162162 Object . keys ( testResult ) . forEach ( ( key ) => {
@@ -176,6 +176,7 @@ const PolicyGroup: React.FC<PolicyGroupProps> = ({
176176 setSelection ( ( res as UrlTestPolicyTestResult ) . winner )
177177 } else {
178178 const testResult = res as SelectPolicyTestResult
179+
179180 Object . keys ( testResult ) . forEach ( ( key ) => {
180181 const result = testResult [ key ]
181182
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export const usePolicyPerformance = () => {
1111 const isSupported = useVersionSupport ( {
1212 ios : '4.9.5' ,
1313 macos : '4.2.4' ,
14+ tvos : '4.9.5' ,
1415 } )
1516 const { data, error } = useSWR < PolicyBenchmarkResults > (
1617 isSupported ? '/policies/benchmark_results' : null ,
You can’t perform that action at this time.
0 commit comments