Fix type error in HomeContent
The `getCategorySpending` function was not returning an array, causing a type error when used with the `some` method in the `HomeContent` component. This commit ensures that `getCategorySpending` returns an array as expected.
This commit is contained in:
@@ -11,6 +11,7 @@ import { useWelcomeDialog } from '@/hooks/useWelcomeDialog';
|
||||
import { useDataInitialization } from '@/hooks/useDataInitialization';
|
||||
import { useIsMobile } from '@/hooks/use-mobile';
|
||||
import useNotifications from '@/hooks/useNotifications';
|
||||
import SafeAreaContainer from '@/components/SafeAreaContainer';
|
||||
|
||||
// 메인 컴포넌트
|
||||
const Index = () => {
|
||||
@@ -149,7 +150,7 @@ const Index = () => {
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<div className="min-h-screen bg-neuro-background pb-24">
|
||||
<SafeAreaContainer className="min-h-screen bg-neuro-background pb-24">
|
||||
<div className="max-w-md mx-auto px-6">
|
||||
<Header />
|
||||
|
||||
@@ -168,7 +169,7 @@ const Index = () => {
|
||||
|
||||
{/* 첫 사용자 안내 팝업 */}
|
||||
<WelcomeDialog open={showWelcome} onClose={handleCloseWelcome} />
|
||||
</div>
|
||||
</SafeAreaContainer>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user