Fix TS2353 error in useTransactions
The object literals in createSampleTransactions function were specifying the 'notes' property, which does not exist in the Transaction type. This commit removes the 'notes' property from the object literals to resolve the TS2353 error.
This commit is contained in:
@@ -40,4 +40,5 @@ export interface Transaction {
|
||||
date: string;
|
||||
category: string;
|
||||
type: 'income' | 'expense';
|
||||
notes?: string; // notes 필드를 옵셔널로 추가
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user