Skip to content

Commit

Permalink
devonfw-forge#41 fixed some errors after merge
Browse files Browse the repository at this point in the history
Co-authored-by: diiinesh <63147290+diiinesh@users.noreply.github.com>
Co-authored-by: sarahffm <sarahboeckel999@gmail.com>
  • Loading branch information
3 people committed Dec 14, 2022
1 parent cf48a8c commit 54fd452
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ export const Estimation: FunctionComponent<EstimationProps> = ({ id }) => {
useEffect(() => {
if (alreadyVoted === true) {
setDoVote(false);
console.log("doVote bei setfalse: " +doVote)

} else {
setDoVote(true);
console.log("doVote bei settrue: " +doVote)

}
console.log("doVote draußen : " +doVote)


if(averageComplexity===undefined||averageComplexity===null) {
setAverageExists(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,21 @@ export const TaskCard: FunctionComponent<{
url?: String;
description?: String;
status: Status;
}> = ({ id, parentSession, title, url, description, status }) => {
complexityAverage?: Number;
finalValue?: Number;
}> = ({ id, parentSession, title, url, description, status, complexityAverage, finalValue }) => {
const isAdmin = true;
const requestStatusChange = async (newStatus: Status) => {
const url = baseUrl + serviceUrl + parentSession + "/task/status";

// const result = newStatus === Status.Ended ? finalResult : null;
const result = newStatus === Status.Ended ? { amoutOfVotes: 0, complexityAverage: 0, finalValue: 5 } : null;
console.log("Final Result: " + result);

await axios({
method: "put",
url: url,
data: { id: id, status: convertStatusToNumber(newStatus) },
data: { id: id, status: convertStatusToNumber(newStatus), result: result },
});
};

Expand Down

0 comments on commit 54fd452

Please sign in to comment.