mohit200008 / medi-Care

medi-care-phi.vercel.app
13 stars 24 forks source link

[The BMI calculator is accepting negative values.] #140

Closed Ayusht777 closed 6 months ago

Ayusht777 commented 8 months ago

What happened?

The BMI calculator is currently allowing the input of negative values, which is unintended behavior. It should be modified to handle only positive values as negative values are not applicable in the context of BMI calculations

How can we reproduce this bug?

Entering a negative value into it.

Desktop Information (Optional)

No response

Urgency (Optional)

Medium priority

mohit200008 commented 8 months ago

you can work on it @Ayusht777

Ayusht777 commented 8 months ago

HI i am getting this error """

npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: react-simple-chatbot@0.5.3 npm ERR! Found: styled-components@5.3.3 npm ERR! node_modules/styled-components npm ERR! peer styled-components@">= 2" from babel-plugin-styled-components@2.0.6 npm ERR! node_modules/babel-plugin-styled-components npm ERR! babel-plugin-styled-components@">= 1.12.0" from styled-components@5.3.3 npm ERR! styled-components@"^5.2.1" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer styled-components@"^4.0.0" from react-simple-chatbot@0.5.3 npm ERR! node_modules/react-simple-chatbot npm ERR! react-simple-chatbot@"^0.5.0" from the root project npm ERR! npm ERR! Conflicting peer dependency: styled-components@4.4.1 npm ERR! node_modules/styled-components npm ERR! peer styled-components@"^4.0.0" from react-simple-chatbot@0.5.3 npm ERR! node_modules/react-simple-chatbot npm ERR! react-simple-chatbot@"^0.5.0" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! npm ERR! For a full report see: npm ERR! C:\Users\Ayush\AppData\Local\npm-cache_logs\2023-12-18T06_06_24_958Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Ayush\AppData\Local\npm-cache_logs\2023-12-18T06_06_24_958Z-debug-0.log """

mohit200008 commented 8 months ago

Did you install the dependencies using npm install