Skip to content

Commit

Permalink
chore: rename to fix typo in functions
Browse files Browse the repository at this point in the history
  • Loading branch information
JoanVicens committed Feb 26, 2024
1 parent b7c079b commit 2992059
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/apps/main/analytics/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function applicationOpened() {
);
}

export function userSignin() {
export function userSigning() {
const { uuid: userId, email } = ConfigStore.get('userData');

client.identify(
Expand All @@ -73,7 +73,7 @@ export function userSignin() {
);
}

export function userSigninFailed(email?: string) {
export function userSigningFailed(email?: string) {
const clientId = ConfigStore.get('clientId');

client.identify(
Expand Down
8 changes: 4 additions & 4 deletions src/apps/main/analytics/user-handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import eventBus from '../event-bus';
import {
sendFeedback,
userLogout,
userSignin,
userSigninFailed,
userSigning,
userSigningFailed,
} from './service';
import { clearRemoteSyncStore } from '../remote-sync/helpers';
import { clearTempFolder } from '../app-info/helpers';

eventBus.on('USER_LOGGED_IN', () => {
userSignin();
userSigning();
clearTempFolder();
});

Expand All @@ -21,7 +21,7 @@ eventBus.on('USER_LOGGED_OUT', () => {
});

ipcMain.on('USER_LOGIN_FAILED', (_, email: string) => {
userSigninFailed(email);
userSigningFailed(email);
});

ipcMain.handle('send-feedback', (_, feedback: string) => {
Expand Down

0 comments on commit 2992059

Please sign in to comment.