File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed
challenge-management/ManageSubmissionPage
components/SubmissionTable Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ export const ManageSubmissionPage: FC<Props> = (props: Props) => {
67
67
) : (
68
68
< div className = { styles . blockTableContainer } >
69
69
< SubmissionTable
70
- datas = { submissions }
70
+ data = { submissions }
71
71
isRemovingSubmission = { isRemovingSubmission }
72
72
doRemoveSubmission = { doRemoveSubmission }
73
73
isRemovingReviewSummations = {
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import styles from './SubmissionTable.module.scss'
17
17
18
18
interface Props {
19
19
className ?: string
20
- datas : Submission [ ]
20
+ data : Submission [ ]
21
21
isRemovingSubmission : IsRemovingType
22
22
doRemoveSubmission : ( item : Submission ) => void
23
23
isRemovingReviewSummations : IsRemovingType
@@ -196,11 +196,11 @@ export const SubmissionTable: FC<Props> = (props: Props) => {
196
196
return (
197
197
< TableWrapper className = { classNames ( styles . container , props . className ) } >
198
198
{ isTablet ? (
199
- < TableMobile columns = { columnsMobile } data = { props . datas } />
199
+ < TableMobile columns = { columnsMobile } data = { props . data } />
200
200
) : (
201
201
< Table
202
202
columns = { columns }
203
- data = { props . datas }
203
+ data = { props . data }
204
204
removeDefaultSort
205
205
onToggleSort = { _ . noop }
206
206
className = { styles . desktopTable }
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ export const SubmissionTableActions: FC<Props> = (props: Props) => {
94
94
className = { classNames ( {
95
95
disabled :
96
96
props . isRemovingReviewSummations [ props . data . id ]
97
- || ! ( props . data . reviewSummation ?? [ ] ) . length ,
97
+ || ! props . data . reviewSummation ? .length ,
98
98
} ) }
99
99
onClick = { function onClick ( ) {
100
100
props . setShowConfirmDeleteReviewsDialog ( props . data )
Original file line number Diff line number Diff line change 1
1
/**
2
- * Request to bust api
2
+ * Request to bus API
3
3
*/
4
4
export interface RequestBusAPI {
5
5
topic : string
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export function toFixed(
42
42
return num
43
43
}
44
44
45
- if ( _ . isNaN ( parseFloat ( num as string ) ) ) return num as number
45
+ if ( Number . isNaN ( Number ( num ) ) ) return num as number
46
46
const numFloat = parseFloat ( num as string )
47
47
48
48
const result = _ . toFinite ( toAcurateFixed ( numFloat , decimal ) )
You can’t perform that action at this time.
0 commit comments