@@ -66,8 +66,9 @@ export class TranslatorSettingsDialogComponent implements OnInit {
66
66
map ( value => value / 100 ) ,
67
67
quietTakeUntilDestroyed ( this . destroyRef )
68
68
)
69
- . subscribe ( threshold =>
70
- this . projectUserConfigDoc . submitJson0Op ( op => op . set ( puc => puc . confidenceThreshold , threshold ) )
69
+ . subscribe (
70
+ threshold =>
71
+ void this . projectUserConfigDoc . submitJson0Op ( op => op . set ( puc => puc . confidenceThreshold , threshold ) )
71
72
) ;
72
73
}
73
74
@@ -84,7 +85,7 @@ export class TranslatorSettingsDialogComponent implements OnInit {
84
85
}
85
86
86
87
set numSuggestions ( value : string ) {
87
- this . projectUserConfigDoc . submitJson0Op ( op => op . set ( puc => puc . numSuggestions , parseInt ( value , 10 ) ) ) ;
88
+ void this . projectUserConfigDoc . submitJson0Op ( op => op . set ( puc => puc . numSuggestions , parseInt ( value , 10 ) ) ) ;
88
89
}
89
90
90
91
get confidenceThreshold ( ) : number {
@@ -127,7 +128,9 @@ export class TranslatorSettingsDialogComponent implements OnInit {
127
128
}
128
129
129
130
setTranslationSettingsEnabled ( value : boolean ) : void {
130
- this . projectUserConfigDoc . submitJson0Op ( op => op . set < boolean > ( puc => puc . translationSuggestionsEnabled , value ) ) ;
131
+ void this . projectUserConfigDoc . submitJson0Op ( op =>
132
+ op . set < boolean > ( puc => puc . translationSuggestionsEnabled , value )
133
+ ) ;
131
134
}
132
135
133
136
updateTranslationSuggestionsSwitch ( ) : void {
@@ -154,7 +157,7 @@ export class TranslatorSettingsDialogComponent implements OnInit {
154
157
}
155
158
156
159
private updateLynxInsightState ( updates : { assessmentsEnabled ?: boolean ; autoCorrectionsEnabled ?: boolean } ) : void {
157
- this . projectUserConfigDoc . submitJson0Op ( op => {
160
+ void this . projectUserConfigDoc . submitJson0Op ( op => {
158
161
for ( const [ key , value ] of Object . entries ( updates ) ) {
159
162
op . set ( puc => puc . lynxInsightState ! [ key ] , value ) ;
160
163
}
0 commit comments