Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/src/common/EquipmentTrainingModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export default function EquipmentTrainingModal(props: EquipmentTrainingModalProp
{
(totalRequirements === totalReqsComplete && byExpiry.length > 0)
? <Typography variant="subtitle2">
{`All Set Until: ${byExpiry[0].expirationDate}`}
All Set Until: {byExpiry[0].expirationDate}
</Typography>
: null
}
Expand Down
2 changes: 1 addition & 1 deletion client/src/common/TrainingModuleUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@ export const moduleStatusMapper =
archived: module.archived,
status: expired ? "Expired" : "Passed",
submissionDate: submissionDate.toDateString(),
expirationDate: expirationDate.toDateString(),
expirationDate: module.expires ? expirationDate.toDateString() : undefined,
};
};
3 changes: 3 additions & 0 deletions client/src/queries/trainingQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,12 @@ export const GET_ACCESS_PROGRESSES = gql`
passedModules {
id
name
expires
}
availableModules {
id
name
expires
}
accessCheckDone
}
Expand All @@ -147,6 +149,7 @@ export const GET_ALL_TRAINING_MODULES = gql`
id
name
archived
expires
}
}
`;
Expand Down
Loading