Skip to content

Commit

Permalink
handlerForFile DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
vbaranov committed May 8, 2018
1 parent 9238870 commit 14823ec
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/components/stepFour/utils.js
Expand Up @@ -674,7 +674,20 @@ export const handlerForFile = (content, type) => {
suffix = ` (GMT ${operator} ${Math.abs(timezoneOffset)})`
}

return `${content.value}${type[content.field]}${suffix}`
console.log("content:", content)
console.log("type:", type)

if (content && type) {
return `${content.value}${type[content.field]}${suffix}`
} else {
if (!content) {
console.log("WARNING!: content is undefined")
}
if (!type) {
console.log("WARNING!: type is undefined")
}
return ''
}
}

export const handleConstantForFile = content => {
Expand Down

0 comments on commit 14823ec

Please sign in to comment.