Skip to content

Commit df5c95e

Browse files
authoredJun 14, 2021
Merge pull request #495 from coderoad/fix/displayed-hints
Fix/displayed hints
2 parents 1ca3fa4 + bd7c7c5 commit df5c95e

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed
 

‎.vscodeignore

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ scripts/**
2222
.prettierrc.js
2323
jest.config.js
2424

25-
## Docs
25+
## Other
2626
docs
27+
releases
28+
other
29+
DEV.md
2730

2831
## Tests
2932
build/test/**
30-
31-
## Docs
32-
DEV.md

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "coderoad",
3-
"version": "0.14.3",
3+
"version": "0.14.4",
44
"description": "Play interactive coding tutorials in your editor",
55
"keywords": [
66
"tutorial",

‎web-app/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "coderoad-app",
3-
"version": "0.14.3",
3+
"version": "0.14.4",
44
"private": true,
55
"scripts": {
66
"build": "react-app-rewired build",

‎web-app/src/containers/Tutorial/components/Steps.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const Steps = (props: Props) => {
2525
if (!step) {
2626
return null
2727
}
28+
2829
return (
2930
<div key={step.id}>
3031
<Step
@@ -34,7 +35,7 @@ const Steps = (props: Props) => {
3435
content={step.content}
3536
subtasks={step.subtasks}
3637
/>
37-
<Hints hints={step.hints || []} />
38+
{['ACTIVE', 'COMPLETE'].includes(step.status) && <Hints hints={step.hints || []} />}
3839
</div>
3940
)
4041
})}

0 commit comments

Comments
 (0)
Failed to load comments.