Okay , i have read the files and sees, there is an issue and the issue is when you update your username from the dashboard , the username gets updated and saved in the database, so even after the username is changed the list of supporters should show because the user is same and just updated the username, but after changing the username , the updated username is not passed for fetching the data because the same old username is passed to fetchPayment function in the userSection part .
const Username = async ({ params }) => {
const checkUser = async () => {
return (
<>
</>
)
}
Here you can see, the username is passed as params.username even after the username is updated and stored in the database so the fetchPayment function doesn't get the updated username.
Okay , i have read the files and sees, there is an issue and the issue is when you update your username from the dashboard , the username gets updated and saved in the database, so even after the username is changed the list of supporters should show because the user is same and just updated the username, but after changing the username , the updated username is not passed for fetching the data because the same old username is passed to fetchPayment function in the userSection part .
const Username = async ({ params }) => {
const checkUser = async () => {
return (
<>
</>
)
}
Here you can see, the username is passed as params.username even after the username is updated and stored in the database so the fetchPayment function doesn't get the updated username.