feat: render nav conditionally

This commit is contained in:
Ahmad Abdolsaheb
2020-09-03 14:21:16 +03:00
committed by Mrugesh Mohapatra
parent 422bacd15d
commit 1a66eac990
29 changed files with 640 additions and 180 deletions

View File

@ -7,6 +7,8 @@ const debug = require('debug');
const log = debug('fcc:tools:seedLocalAuthUser');
const { MONGOHQ_URL } = process.env;
const defaulUserImage = require('../../../config/misc').defaulUserImage;
function handleError(err, client) {
if (err) {
console.error('Oh noes!! Error seeding local auth user.');
@ -48,7 +50,7 @@ MongoClient.connect(MONGOHQ_URL, { useNewUrlParser: true }, function(
about: '',
name: 'Development User',
location: '',
picture: 'https://github.com/identicons/camperbot.png',
picture: defaulUserImage,
acceptedPrivacyTerms: true,
sendQuincyEmail: false,
currentChallengeId: '',