Skip to content

Commit

Permalink
fix(facebook): fixes issue when not supplying default params (#1088)
Browse files Browse the repository at this point in the history
* Fix default facebook logEvent parameters

* Implement correct parameters format in facebook logEvent method
  • Loading branch information
NoelDeMartin authored and ihadeed committed Feb 23, 2017
1 parent b4b7cfa commit 85a3a40
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugins/facebook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,10 @@ export class Facebook {
* @param {number} [valueToSum] any value to be added to added to a sum on each event
* @returns {Promise<any>}
*/
@Cordova()
@Cordova({
successIndex: 3,
errorIndex: 4
})
static logEvent(
name: string,
params?: Object,
Expand Down

0 comments on commit 85a3a40

Please sign in to comment.