Skip to content

Commit b627020

Browse files
committed
wins now show tips on all correct items
1 parent b9b8847 commit b627020

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/results/Results.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const Results = ({ location: { score, items } }) => {
3131

3232
const displayFact = i => {
3333
setDisplay(!display);
34-
setTip(incorrectItems[i].Tip);
34+
setTip(() => (win ? correctItems[i].Tip : incorrectItems[i].Tip));
3535
};
3636

3737
return (

src/components/results/Results.style.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const ScoreContainer = styled.div`
1515
display: flex;
1616
justify-content: center;
1717
margin-top: 6rem;
18-
@media only screen and (max-width: 1000px) {
18+
@media only screen and (max-width: 768px) {
1919
width: 90vw;
2020
margin-top: 8rem;
2121
margin-bottom: 0;

0 commit comments

Comments
 (0)