Skip to content

Commit 46d8b2f

Browse files
committed
fix: properly fetch color from the response
1 parent ce3ce15 commit 46d8b2f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lambda-feedback-segp-sandbox/sandbox-addon",
3-
"version": "0.6.7",
3+
"version": "0.6.8",
44
"description": "lambda feedback sandbox addon",
55
"keywords": [
66
"storybook-addons",

src/components/Evaluate.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function Evaluate() {
4848
isError: res.data.result.is_error ?? false,
4949
feedback: res.data.result.feedback
5050
?? (res.data.result.is_correct ? "Correct" : "Incorrect"),
51-
color: res.data.is_correct ? 'green':'red'};
51+
color: res.data.result.is_correct ? 'green':'red'};
5252
updateArgs({feedback: feedback});
5353
// {homes.map(home => <div>{home.name}</div>)}
5454
}

0 commit comments

Comments
 (0)