File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
static/app/views/performance/browser/webVitals/utils Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1
1
import { decodeScalar } from 'sentry/utils/queryString' ;
2
2
import { useLocation } from 'sentry/utils/useLocation' ;
3
+ import useOrganization from 'sentry/utils/useOrganization' ;
3
4
import { USE_STORED_SCORES } from 'sentry/views/performance/browser/webVitals/settings' ;
4
5
5
6
export function useStoredScoresSetting ( ) {
6
7
const location = useLocation ( ) ;
7
8
const { query} = location ;
9
+ const organization = useOrganization ( ) ;
8
10
9
11
if ( query . useStoredScores !== undefined ) {
10
12
return decodeScalar ( query . useStoredScores ) === 'true' ;
11
13
}
12
14
15
+ if ( organization . features . includes ( 'starfish-browser-webvitals-use-backend-scores' ) ) {
16
+ return true ;
17
+ }
18
+
13
19
return USE_STORED_SCORES ;
14
20
}
You can’t perform that action at this time.
0 commit comments