Skip to content

Commit

Permalink
fix: minor rename
Browse files Browse the repository at this point in the history
  • Loading branch information
JoanVicens committed Mar 1, 2024
1 parent 9c9f588 commit a99fb88
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/apps/main/analytics/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ export function trackError(
client.track(payload);
}

export function trackVirtualDriveError(error: VirtualDriveIssue) {
const event = virtualDriveErrorToTrackedActionsMap.get(error.error);
export function trackVirtualDriveError(issue: VirtualDriveIssue) {
const event = virtualDriveErrorToTrackedActionsMap.get(issue.error);

if (!event) {
// Error has no event associated to be tracked
Expand All @@ -240,9 +240,9 @@ export function trackVirtualDriveError(error: VirtualDriveIssue) {
const clientId = ConfigStore.get('clientId');

const properties = {
item: error.name,
error: error.cause,
type: isVirtualDriveFolderError(error.error) ? 'Folder' : 'File',
item: issue.name,
error: issue.cause,
type: isVirtualDriveFolderError(issue.error) ? 'Folder' : 'File',
};

const payload = {
Expand Down

0 comments on commit a99fb88

Please sign in to comment.