Skip to content

Commit

Permalink
fix: improve naming
Browse files Browse the repository at this point in the history
  • Loading branch information
BohdanOne committed Nov 27, 2024
1 parent 86ee82e commit 9f9dc40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/slice-machine/src/utils/tracking/trackFieldAdded.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import { SlicePrimaryFieldSM } from "@/legacy/lib/models/common/Slice";

import { getContentTypeForTracking } from "./getContentTypeForTracking";

type TrackFieldAddedParam = {
type TrackFieldAddedArgs = {
id: string;
field: SlicePrimaryFieldSM | NestableWidget | UID | Group;
isInAGroup?: boolean;
};

export function trackFieldAdded(params: TrackFieldAddedParam) {
const { id, field, isInAGroup = false } = params;
export function trackFieldAdded(args: TrackFieldAddedArgs) {
const { id, field, isInAGroup = false } = args;

void telemetry.track({
event: "field:added",
Expand Down

0 comments on commit 9f9dc40

Please sign in to comment.