File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
apps/www/src/app/(main)/_components/CodingHours Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,15 +12,15 @@ export const CodingHours = async () => {
12
12
13
13
const {
14
14
data : { total_seconds } ,
15
- } = await res . json ( ) ;
15
+ } = ( await res . json ( ) ) as { data : { total_seconds : number } } ;
16
16
17
17
const roundedSeconds = Math . round ( total_seconds ) ;
18
18
const hours = Math . floor ( roundedSeconds / 3600 ) . toLocaleString ( ) ;
19
19
const remainingSeconds = roundedSeconds % 3600 ;
20
20
const minutes = Math . floor ( remainingSeconds / 60 ) ;
21
21
22
22
return (
23
- < div className = 'space-y-2 px -8' >
23
+ < div className = 'space-y-4 p -8' >
24
24
< h4 className = 'font-serif text-lg text-grey-text' > Coding hours</ h4 >
25
25
< p className = 'text-3xl font-medium' >
26
26
{ hours } hrs { minutes } mins
You can’t perform that action at this time.
0 commit comments