From bbf75bcbd7f5c67a76ce93c93fc66824d3f68581 Mon Sep 17 00:00:00 2001 From: Guille Date: Fri, 30 Dec 2016 12:32:53 +0100 Subject: [PATCH] fix(mixpanel): fix issue when not passing eventProperties (#927) --- src/plugins/mixpanel.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/mixpanel.ts b/src/plugins/mixpanel.ts index b5a9fd72e..e0fbd97c2 100644 --- a/src/plugins/mixpanel.ts +++ b/src/plugins/mixpanel.ts @@ -85,7 +85,10 @@ export class Mixpanel { * @param eventProperties {any} optional * @returns {Promise} */ - @Cordova() + @Cordova({ + successIndex: 2, + errorIndex: 3 + }) static track(eventName: string, eventProperties?: any): Promise { return; } /**