Hi I’m making a split expenses app https://bit.ly/3bnQSy2 which split expenses between “You” and your friend. So far I’m able to add friend and expenses, edit expenses and delete expenses. I’m trying to add logic to now split expenses and show if my friends are owed or owe me right beside their name.
For this I have created a
splitExpenses method in the
AppDashboard component which acts as an ancestor to all other components. For some weird reason, when I use the
splitExpenses method, all the user and expense gets jumbled up. To reproduce the issue, add a couple of user and a few expenses to each of the user.
I can’t figure out why it’s happening and so reaching out to this amazing community.
Thanks in advance!