mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-30 04:44:28 +00:00
fix: resolve lint, typecheck, and tsconfig deprecation errors
This commit is contained in:
@@ -27,7 +27,7 @@ function UploadTaskItem({ task }: { task: TaskInfo }) {
|
||||
const isCompleted = task.uploaded === task.total
|
||||
const percent = task.total > 0 ? (task.uploaded / task.total) * 100 : 0
|
||||
|
||||
let formattedTime = ''
|
||||
let formattedTime: string
|
||||
try {
|
||||
formattedTime = formatTimeAgo(task.createdAt)
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user