code refactoring, fixed wrong jwt expire time

This commit is contained in:
2023-06-23 15:18:40 +02:00
parent 7d510fd2d4
commit 3067cee08c
5 changed files with 151 additions and 140 deletions

View File

@@ -24,7 +24,7 @@ import { I18nContext } from '../providers/i18nProvider'
import { RPCClientContext } from '../providers/rpcClientProvider'
import { RootState } from '../stores/store'
import type { RPCResponse, RPCResult } from '../types'
import { dateTimeComparatorFunc, isRPCResponse } from '../utils'
import { datetimeCompareFunc, isRPCResponse } from '../utils'
export default function Home() {
// redux state
@@ -87,7 +87,7 @@ export default function Home() {
setActiveDownloads((event.result ?? [])
.filter(f => !!f.info.url)
.sort((a, b) => dateTimeComparatorFunc(
.sort((a, b) => datetimeCompareFunc(
b.info.created_at,
a.info.created_at,
)))