Skip to content

Commit

Permalink
fix: small display issue
Browse files Browse the repository at this point in the history
  • Loading branch information
amir-kedis committed Dec 29, 2023
1 parent a321588 commit 7197abb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/components/dashboard/Dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ export default function Dashboard() {
}
}, [navigate, userInfo]);

const titleMsg = `مرحباً يا كابتن ${userInfo?.firstName} ${userInfo?.middleName}`;
const titleMsg =
userInfo.gender == "male"
? `مرحباً يا كابتن ${userInfo?.firstName} ${userInfo?.middleName}`
: `مرحبا يا شيفتان ${userInfo?.firstName} ${userInfo?.middleName}`;

return (
<div className="dashboard">
Expand Down

0 comments on commit 7197abb

Please sign in to comment.