Skip to content

Commit

Permalink
Fixed format availablity
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwain-Anderson committed Dec 18, 2024
1 parent 826b330 commit 60c2471
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions frontend/src/components/EmployeeCards/EmployeeCards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,7 @@ const EmployeeCard = ({
}: EmployeeCardProps) => {
const navigate = useNavigate();
const netId = email.split('@')[0];
const fmtPhone = '';
if (phoneNumber !== undefined) {
const fmtPhone = formatPhone(phoneNumber);
} else {
const fmtPhone = '';
}

const fmtPhone = formatPhone(phoneNumber);
const formatAvail = (availability: {
[key: string]: { startTime: string; endTime: string };
}) => {
Expand Down

0 comments on commit 60c2471

Please sign in to comment.