Skip to content

Commit

Permalink
fix: data typing
Browse files Browse the repository at this point in the history
  • Loading branch information
stardustmeg committed Jan 12, 2025
1 parent e079b58 commit 9aa85b6
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ interface StudentInterviewDetails {
registrationStart: string;
}

export const getInterviewCardDetails = (params: Partial<StudentInterviewDetails>) => {
const { interviewPassed, isRegistered, registrationNotStarted, registrationStart } = params;
export const getInterviewCardDetails = ({
interviewPassed,
isRegistered,
registrationNotStarted,
registrationStart,
}: StudentInterviewDetails) => {
if (interviewPassed) {
return {
cardMessage: 'You have your interview result. Congratulations!',
Expand Down

0 comments on commit 9aa85b6

Please sign in to comment.