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

Transactions table is not displaying #83

Open
SrujanChary-2003 opened this issue Dec 11, 2024 · 8 comments
Open

Transactions table is not displaying #83

SrujanChary-2003 opened this issue Dec 11, 2024 · 8 comments

Comments

@SrujanChary-2003
Copy link

image

An error occurred while getting the account: TypeError: transactions is not iterable
at $$ACTION_1 (webpack-internal:///(rsc)/./lib/actions/bank.actions.ts:119:16)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async TransactionHistory (webpack-internal:///(rsc)/./app/(root)/transaction-history/page.tsx:46:21)
GET /transaction-history?_rsc=1suv6 200 in 5279ms
⨯ components\TransactionsTable.tsx (43:23) @ map
⨯ TypeError: Cannot read properties of undefined (reading 'map')
at TransactionsTable (./components/TransactionsTable.tsx:108:40)
at stringify ()
digest: "3782927363"
41 |
42 |

43 | {transactions.map((t: Transaction) => {
| ^
44 | const status = getTransactionStatus(new Date(t.date))
45 | const amount = formatAmount(t.amount) this is the error displayed in terminal please provide us solution sir..

@Manoj-Kande
Copy link

Manoj-Kande commented Dec 19, 2024

your transaction table is empty. cross check the getAccount(function) and getTransactions(function) and page.tsx(root folder).

@MOMOJR321
Copy link

i am having this same problem.

did you manage to fix it

@AdugboAghogho
Copy link

i am having this same problem.

@AdugboAghogho
Copy link

AdugboAghogho commented Dec 25, 2024

@Manoj-Kande 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

@Manoj-Kande
Copy link

i am having this same problem.

did you manage to fix it

Yes, I made some changes to the createLinkToken function. You can refer to the code in the transaction_table.txt file in the repository. After making these changes, I created a new user and tried it, and the problem was fixed. Additionally, ensure to remove the documents in Dwolla and Appwrite if the newly created user already exists.

@Manoj-Kande
Copy link

Manoj-Kande commented Dec 25, 2024

@Manoj-Kande 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

You can refer to this solution to fix your problem
#83 (comment)

@AdugboAghogho
Copy link

thanks so much... it worked!!!

@Ayush-1127
Copy link

Ayush-1127 commented Dec 28, 2024

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

5 participants