mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2025-05-03 04:47:07 +01:00
Fix glitch in converted CoffeeScript.
Replace naked ternary with if then else.
This commit is contained in:
@ -37,7 +37,10 @@ GenericHelpers = module.exports =
|
||||
momentDate = moment datetime
|
||||
return momentDate.format(format) if momentDate.isValid()
|
||||
|
||||
datetime || (typeof fallback == 'string' ? fallback : (fallback == true ? 'Present' : null));
|
||||
datetime ||
|
||||
if typeof fallback == 'string'
|
||||
then fallback
|
||||
else (if fallback == true then 'Present' else null)
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user