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
Taeho-fixed cow bought/sold bug #34
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there needs to be one small change implemented. Deployed on Heroku and tested and it seems that when I buy a cow I still get a toast that says "Cow Sold". I think that in the issue it says a toast should only appear when you don't have any cows left to sell. Other than that it works fine when you don't have any cows left to sell. Currently passing CI/CD checks.
34-frontend-mutation-testing failing with this and only this, which amounts to the same thing: Since that's unrelated to your PR, I'll allow it for now.. but we need to get this fixed. I'm hopeful that PR #31 from the -4 team might address this... we'll see. |
f458d6e
to
0e1db90
Compare
0e1db90
to
a566b6f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review did not mention deleting commented lines of code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated commented out code
a52d36d
to
7dbbcb1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented out code removed, passes all CI/CD tests, LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
frontend/src/main/pages/PlayPage.js
Outdated
@@ -1,7 +1,7 @@ | |||
import React from "react"; | |||
import { Container, CardGroup } from "react-bootstrap"; | |||
import { useParams } from "react-router-dom"; | |||
import { toast } from "react-toastify"; | |||
//import { toast } from "react-toastify"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove commented out code.
In this PR, I modified the frontend and backend so that error message occurs when user tries to buy a cow without enough money or user tries to sell a cow without any cow.