@@ -212,7 +212,7 @@ if (OrganizationApplicationsTable.length) {
212
212
}
213
213
214
214
let organizationApplicationTurboModeSwitch = document . getElementById ( "organizationApplicationTurboMode" ) ;
215
- if ( organizationApplicationTurboModeSwitch !== "undefined" ) {
215
+ if ( organizationApplicationTurboModeSwitch !== null ) {
216
216
let organizationApplicationTurboModeEnabled = JSON . parse ( localStorage . getItem ( "organizationApplicationTurboModeEnabled" ) || false ) ;
217
217
organizationApplicationTurboModeSwitch . addEventListener ( "click" , ( event ) => {
218
218
localStorage . setItem ( "organizationApplicationTurboModeEnabled" , event . target . checked ) ;
@@ -232,7 +232,7 @@ if (organizationApplicationTurboModeSwitch !== "undefined") {
232
232
}
233
233
234
234
let requestMoreInformationEmailTemplateButton = document . getElementById ( "requestMoreInformationEmailTemplateButton" ) ;
235
- if ( requestMoreInformationEmailTemplateButton !== "undefined" ) {
235
+ if ( requestMoreInformationEmailTemplateButton !== null ) {
236
236
requestMoreInformationEmailTemplateButton . addEventListener ( "click" , ( ) => {
237
237
let requestMoreInfoModalMessage = document . getElementById ( "requestMoreInfoModalMessage" ) ;
238
238
let requestMoreInformationEmailTemplate = document . getElementById ( "requestMoreInformationEmailTemplate" ) ;
@@ -241,7 +241,7 @@ if (requestMoreInformationEmailTemplateButton !== "undefined") {
241
241
}
242
242
243
243
let editModalForm = document . getElementById ( "editModalForm" ) ;
244
- if ( editModalForm !== "undefined" ) {
244
+ if ( editModalForm !== null ) {
245
245
if ( editModalForm . classList . contains ( "edit-form-errors" ) ) {
246
246
document . getElementById ( "editModalButton" ) . click ( ) ;
247
247
}
0 commit comments