From 0e4132c50d97a3a9b3dabeee1d4e9f98d4e79523 Mon Sep 17 00:00:00 2001 From: Jethary Date: Fri, 1 Nov 2024 12:28:12 -0400 Subject: [PATCH] test transfer step --- protocol-designer/src/analytics/middleware.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/protocol-designer/src/analytics/middleware.ts b/protocol-designer/src/analytics/middleware.ts index b5e76199b1d..562c2e770f2 100644 --- a/protocol-designer/src/analytics/middleware.ts +++ b/protocol-designer/src/analytics/middleware.ts @@ -58,7 +58,16 @@ export const reduxActionToAnalyticsEvent = ( additionalProperties.__pipetteName = pipetteEntities[stepArgs?.pipette].name } - + const stepName = stepArgs.commandCreatorFnName + + switch (stepName) { + case 'transfer': { + return { + name: 'transferStep', + properties: { ...stepArgs, ...additionalProperties }, + } + } + } return { name: 'saveStep', properties: { ...stepArgs, ...additionalProperties },