@@ -6,7 +6,6 @@ import { createWebsocketResponse } from '../websocketActions';
66interface State {
77 forced : boolean ;
88 showGemThreshold : number ;
9- showThemeThreshold : number ;
109}
1110
1211const ENABLED = 1.0 ;
@@ -15,14 +14,12 @@ const DISABLED = -1.0;
1514const initialState : State = {
1615 forced : false ,
1716 showGemThreshold : DISABLED ,
18- showThemeThreshold : DISABLED ,
1917} ;
2018
2119const { action : wsFeatureFlags , schema : wsFeatureFlagsSchema } = createWebsocketResponse (
2220 'featureFlags' ,
2321 z . object ( {
2422 showGemThreshold : z . number ( ) . nullish ( ) ,
25- showThemeThreshold : z . number ( ) . nullish ( ) ,
2623 } ) ,
2724) ;
2825
@@ -33,12 +30,10 @@ const slice = createSlice({
3330 forceEnableAll : ( state ) => {
3431 state . forced = true ;
3532 state . showGemThreshold = ENABLED ;
36- state . showThemeThreshold = ENABLED ;
3733 } ,
3834 forceDisableAll : ( state ) => {
3935 state . forced = true ;
4036 state . showGemThreshold = DISABLED ;
41- state . showThemeThreshold = DISABLED ;
4237 } ,
4338 } ,
4439 extraReducers : ( builder ) => {
@@ -47,15 +42,11 @@ const slice = createSlice({
4742 return ;
4843 }
4944
50- const { showGemThreshold, showThemeThreshold } = action . payload ;
45+ const { showGemThreshold } = action . payload ;
5146
5247 if ( showGemThreshold ) {
5348 state . showGemThreshold = showGemThreshold ;
5449 }
55-
56- if ( showThemeThreshold ) {
57- state . showThemeThreshold = showThemeThreshold ;
58- }
5950 } ) ;
6051 } ,
6152} ) ;
0 commit comments