Skip to content

Commit

Permalink
fix: no explicit any
Browse files Browse the repository at this point in the history
  • Loading branch information
jktrn committed Aug 6, 2024
1 parent 97e31f6 commit ddda783
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/api/wakatime-stats/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export async function GET(request: NextRequest) {
}

const data = await response.json()
const topLanguages: Language[] = data.data.languages.map((lang: any) => ({
const topLanguages: Language[] = data.data.languages.map((lang) => ({
name: lang.name,
hours: (lang.total_seconds / 3600).toFixed(2),
}))
Expand Down
2 changes: 1 addition & 1 deletion components/bento/WakatimeGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const WakatimeGraph = ({ username, omitLanguages = [] }: Props) => {
fetchData()
}, [fetchData])

const CustomYAxisTick = useCallback((props: any) => {
const CustomYAxisTick = useCallback((props) => {
const { x, y, payload } = props
const icon = getLanguageIcon(payload.value.toLowerCase())
return (
Expand Down

0 comments on commit ddda783

Please sign in to comment.