diff --git a/src/api/hooks/zap-split/useZapSplit.ts b/src/api/hooks/zap-split/useZapSplit.ts index f77b79c71..2790a0129 100644 --- a/src/api/hooks/zap-split/useZapSplit.ts +++ b/src/api/hooks/zap-split/useZapSplit.ts @@ -18,9 +18,9 @@ interface SplitValue { * * @param {StatusEntity | undefined} status - The current status entity. * @param {AccountEntity} account - The account for which the zap split calculation is done. -* +* * @returns {Object} An object containing the zap split arrays, zap split data, and a function to calculate the received amount. -* +* * @property {ZapSplitData[]} zapArrays - Array of zap split data returned from the API. * @property {Object} zapSplitData - Contains the total split amount, amount to receive, and individual split values. * @property {Function} receiveAmount - A function to calculate the zap amount based on the split configuration. diff --git a/src/schemas/zap-split.ts b/src/schemas/zap-split.ts index c2323d773..e830e676b 100644 --- a/src/schemas/zap-split.ts +++ b/src/schemas/zap-split.ts @@ -7,7 +7,7 @@ const addMethodsToAccount = (account: Account) => { ...account, get: (key: string) => (account as any)[key], getIn: (path: string[]) => path.reduce((acc, key) => (acc as any)[key], account), - toJS: () => account, + toJS: () => account, }; };