Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TransactionsTable not working #87

Open
AdugboAghogho opened this issue Dec 25, 2024 · 2 comments
Open

TransactionsTable not working #87

AdugboAghogho opened this issue Dec 25, 2024 · 2 comments

Comments

@AdugboAghogho
Copy link

⨯ components\TransactionsTable.tsx (44:23) @ map
⨯ TypeError: Cannot read properties of undefined (reading 'map') at TransactionsTable (./components/TransactionsTable.tsx:108:40)
at stringify ()
digest: "1968010985"
42 |
43 |

44 | {transactions.map((t: Transaction) => {
| ^
45 | const status = getTransactionStatus(new Date(t.date))
46 | const amount = formatAmount(t.amount)
47 |
GET /transaction-history 500 in 11133ms

@AdugboAghogho
Copy link
Author

image

my RecentTransactions is not displaying, and the issue is from TransactionsTable and when i continued, TransactionHistory this error show, how exactly did u fix ours, i went through your codes i couldn't find a fix.... if u don't mind pls explain

@Ayush-1127
Copy link

@AdugboAghogho

Here is the Problem fixed
Do changes in the function createLinkToken which is present in the file name user.actions.ts.

export const createLinkToken = async (user: User) => {
try {
const tokenParams = {
user: {
client_user_id: user.$id
},
client_name: ${user.firstName} ${user.lastName},
products: ['auth', 'transactions'] as Products[],
language: 'en',
country_codes: ['US'] as CountryCode[],
}

const response = await plaidClient.linkTokenCreate(tokenParams);

return parseStringify({ linkToken: response.data.link_token })
} catch (error) {
console.log(error);
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@Ayush-1127 @AdugboAghogho and others