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);