From fd510f7f1a12a15c2079dfb3035b23b63a8a4f26 Mon Sep 17 00:00:00 2001 From: Vince Linise Date: Fri, 27 Dec 2024 12:23:52 +0100 Subject: [PATCH] =?UTF-8?q?refactor(lint):=20Fix=20de=20probl=C3=A8mes=20d?= =?UTF-8?q?e=20lint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/GetRessources/GetContribs.tsx | 1 + src/views/account/Lessons/Lessons.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/GetRessources/GetContribs.tsx b/src/utils/GetRessources/GetContribs.tsx index fe2f5990e..b4d3a824d 100644 --- a/src/utils/GetRessources/GetContribs.tsx +++ b/src/utils/GetRessources/GetContribs.tsx @@ -5,6 +5,7 @@ export interface Contributor { login: string; avatar_url: string; html_url: string; + contributions: number; } export async function getContributors (): Promise { diff --git a/src/views/account/Lessons/Lessons.tsx b/src/views/account/Lessons/Lessons.tsx index 733d7ec1e..90e28685e 100644 --- a/src/views/account/Lessons/Lessons.tsx +++ b/src/views/account/Lessons/Lessons.tsx @@ -216,7 +216,7 @@ const Lessons: Screen<"Lessons"> = ({ route, navigation }) => { return unsubscribe; }, []); - const onDateSelect = (date: Date) => { + const onDateSelect = (date: Date | undefined) => { const newDate = new Date(date || 0); newDate.setHours(0, 0, 0, 0); setPickerDate(newDate);