Skip to content

Commit

Permalink
third
Browse files Browse the repository at this point in the history
  • Loading branch information
rajku-dev committed Apr 28, 2024
1 parent 39d404d commit 53f408a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion routes/staticRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ const router = express.Router()
router.get('/', (req,res)=>{
const uid = req.cookies?.uid;
const user = getUser(uid);
const username = user.name;
var username=null;
if(user){username = user.name;}
return res.render('home',{
username:username
});
Expand Down

0 comments on commit 53f408a

Please sign in to comment.