by metalgearsolid · 7y ago · 0 comments
return config.github ?? config.twitter ?? defaultYou refactored the code and changed the logic without noticing.
return (twitterUrl && config.twitter) || (githubUrl && config.github) || default return twitterUrl ? config.twitter
: githubUrl ? config.github
: default