Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
shepherd-l committed Feb 16, 2024
1 parent a3b3253 commit e3f6f55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/shared/services/Database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ export default class Database {

async getUserState(): Promise<UserState> {
const userState = new UserState();
userState.previousOneSignalId = "";
userState.previousExternalId = "";
userState.previousOneSignalId = '';
userState.previousExternalId = '';
// previous<OneSignalId|ExternalId> are used to track changes to the user's state.
// Displayed in the `current` & `previous` fields of the `userChange` event.
userState.previousOneSignalId = await this.get<string>(
Expand Down
2 changes: 1 addition & 1 deletion src/shared/services/OneSignalEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default class OneSignalEvent {
static async trigger(eventName: string, data?: any, emitter?: Emitter) {
if (!Utils.contains(SILENT_EVENTS, eventName)) {
const displayData = data;
let env = Utils.capitalize(SdkEnvironment.getWindowEnv().toString());
const env = Utils.capitalize(SdkEnvironment.getWindowEnv().toString());

if (displayData || displayData === false) {
Log.debug(`(${env}) » ${eventName}:`, displayData);
Expand Down

0 comments on commit e3f6f55

Please sign in to comment.