Skip to content

Commit 674f40f

Browse files
committed
fix a type error
1 parent e7d7a70 commit 674f40f

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

source/views/sis/student-work/clean-job.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export function cleanJob(job: JobType): JobType {
1111
const comments = fastGetTrimmedText(job.comments)
1212
const skills = fastGetTrimmedText(job.skills)
1313

14-
const timeOfHours = job.timeOfHours.toString()
1514
const hoursPerWeek = job.hoursPerWeek.trim()
1615
const lastModified = job.lastModified.trim()
1716
const contactEmail = fixupEmailFormat(job.contactEmail.trim())
@@ -28,7 +27,6 @@ export function cleanJob(job: JobType): JobType {
2827
comments,
2928
skills,
3029
hoursPerWeek,
31-
timeOfHours,
3230
lastModified,
3331
contactEmail,
3432
contactFirstName,

source/views/sis/student-work/detail.android.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function renderContact(
7878
: null
7979
}
8080

81-
function renderHours(timeOfHours: string, hoursPerWeek: string) {
81+
function renderHours(timeOfHours: number | string, hoursPerWeek: string) {
8282
const ending = hoursPerWeek == 'Full-time' ? '' : ' hrs/week'
8383
return timeOfHours && hoursPerWeek
8484
? <Card header="Hours" style={styles.card}>

source/views/sis/student-work/detail.ios.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function renderContact(
5151
: null
5252
}
5353

54-
function renderHours(timeOfHours: string, hoursPerWeek: string) {
54+
function renderHours(timeOfHours: number | string, hoursPerWeek: string) {
5555
const ending = hoursPerWeek == 'Full-time' ? '' : ' hrs/week'
5656
return timeOfHours && hoursPerWeek
5757
? <Section header="HOURS">

0 commit comments

Comments
 (0)