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

Bug Fixes #75

Closed
Madhu2244 opened this issue Apr 5, 2024 · 0 comments · Fixed by #81
Closed

Bug Fixes #75

Madhu2244 opened this issue Apr 5, 2024 · 0 comments · Fixed by #81
Assignees

Comments

@Madhu2244
Copy link
Member

  1. Fair market value table switching tabs doesn't filter - When you are on http://localhost:3000/DonationItemsTable, switching the tab does not work.
  2. Business dashboard calculate worth is hardcoded -
  const calculateTotalWorth = () => {
    // ***********************************************************************
    // CHANGE LATER: Right now the prices are just the first four rows of the
    // fair_market_value table, thus if the table has less than four tables
    // this function will break
    // ***********************************************************************
    return donationData['canned_dog_food_quantity'] && priceData.length > 0
      ? donationData['canned_dog_food_quantity'] * priceData[0]['price'] +
          donationData['dry_dog_food_quantity'] * priceData[1]['price'] +
          donationData['canned_cat_food_quantity'] * priceData[2]['price'] +
          donationData['dry_cat_food_quantity'] * priceData[3]['price']
      : 0;
  };
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

Successfully merging a pull request may close this issue.

3 participants