@@ -90,7 +90,7 @@ class OSButtons extends React.Component<Props, State> {
90
90
) ;
91
91
92
92
const locationShared = renderButtonView ( "is Location Shared" , color , async ( ) => {
93
- let appHasLocationShared = await OneSignal . isLocationShared ( ) ;
93
+ const appHasLocationShared = await OneSignal . isLocationShared ( ) ;
94
94
loggingFunction ( `Application has location shared active: ${ appHasLocationShared } ` ) ;
95
95
} )
96
96
@@ -131,7 +131,7 @@ class OSButtons extends React.Component<Props, State> {
131
131
const { loggingFunction } = this . props ;
132
132
133
133
const deviceStateButton = renderButtonView ( "Get Device State" , color , async ( ) => {
134
- let deviceState = await OneSignal . getDeviceState ( ) ;
134
+ const deviceState = await OneSignal . getDeviceState ( ) ;
135
135
loggingFunction ( `Device State: ${ JSON . stringify ( deviceState ) } ` ) ;
136
136
} )
137
137
@@ -149,7 +149,7 @@ class OSButtons extends React.Component<Props, State> {
149
149
"is Privacy Consent Required" ,
150
150
color ,
151
151
async ( ) => {
152
- let appRequiresUserPrivacyConsent = await OneSignal . requiresUserPrivacyConsent ( ) ;
152
+ const appRequiresUserPrivacyConsent = await OneSignal . requiresUserPrivacyConsent ( ) ;
153
153
loggingFunction ( `Application requires privacy consent: ${ appRequiresUserPrivacyConsent } ` ) ;
154
154
} )
155
155
@@ -161,7 +161,7 @@ class OSButtons extends React.Component<Props, State> {
161
161
} )
162
162
163
163
const userProvidedPrivacyConsent = renderButtonView ( "Did User Provide Privacy Consent" , color , async ( ) => {
164
- let didProvide = await OneSignal . userProvidedPrivacyConsent ( ) ;
164
+ const didProvide = await OneSignal . userProvidedPrivacyConsent ( ) ;
165
165
loggingFunction ( `Provided Privacy Consent: ${ didProvide } ` ) ;
166
166
} )
167
167
0 commit comments