diff --git a/src/app/page.tsx b/src/app/page.tsx index cfd777a..b32f972 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -62,7 +62,7 @@ function YourMainContent({ themeColor }: { themeColor: string }) { handler: ({ proverb }) => { setState({ ...state, - proverbs: [...state.proverbs, proverb], + proverbs: [...(state.proverbs || []), proverb], }); }, }); @@ -99,7 +99,7 @@ function YourMainContent({ themeColor }: { themeColor: string }) {