Commit a38725ba authored by Rajendra Kadam's avatar Rajendra Kadam Committed by Axel Garcia

Change default of `value` as a number

parent b284e889
...@@ -48,7 +48,7 @@ const createEventPayload = (el, { suffix = '' } = {}) => { ...@@ -48,7 +48,7 @@ const createEventPayload = (el, { suffix = '' } = {}) => {
const action = (trackAction || trackEvent) + (suffix || ''); const action = (trackAction || trackEvent) + (suffix || '');
let value = trackValue || el.value || undefined; let value = trackValue || el.value || undefined;
if (el.type === 'checkbox' && !el.checked) value = false; if (el.type === 'checkbox' && !el.checked) value = 0;
let extra = trackExtra; let extra = trackExtra;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment