Skip to content

Commit 1df4343

Browse files
Ignite
1 parent 236c461 commit 1df4343

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

lib/view/actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export default class Actions extends React.PureComponent {
100100
)
101101
else moredetails = null
102102
}
103-
return(<div className="verdict">
103+
return(<div className="verdict" key={Math.floor(Math.random()*1000000)}>
104104
<div className="show-verdict" onClick={this.toggleverdict}><span>example {test.n+1}</span> <i className={"icon-"+test.icon}></i></div>
105105
{moredetails}
106106
</div>)

lib/view/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ export default class Root extends React.PureComponent {
3030

3131
this.state = {
3232
desc: "codeforces div 2",
33-
id: 1397,
33+
id: 1388,
3434
finished: 0,
35-
changed: 1,
35+
changed: 2,
3636
createnv: false,
3737
timeremaining: 84600,
3838
profimg: "//templates.joomla-monster.com/joomla30/jm-news-portal/components/com_djclassifieds/assets/images/default_profile.png"

lib/view/play.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default class Play extends React.PureComponent {
6262
fetch("https://source.unsplash.com/random/280x280").then(res=>{
6363
this.setState({image: res.url})
6464
}).catch(err=> {
65-
this.setState({image: "https://images.unsplash.com/photo-1595496710086-d69bff2ccb19?crop=entropy&cs=tinysrgb&fit=crop&fm=jpg&h=400&ixlib=rb-1.2.1&q=80&w=400"})
65+
this.setState({image: "https://images.unsplash.com/photo-1595496710086-d69bff2ccb19?crop=entropy&cs=tinysrgb&fit=crop&fm=jpg&h=280&ixlib=rb-1.2.1&q=80&w=280"})
6666
})
6767
}
6868

lib/view/problems.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ export default class Problems extends React.PureComponent {
464464
: null }
465465
<div className="problems" style={{display: "flex"}}>
466466
{this.state.probs.length ? this.state.probs.map(prob=>{
467-
return <Problem prob={prob} changer={this.changecurr.bind(this)} />
467+
return <Problem prob={prob} changer={this.changecurr.bind(this)} key={prob.index} />
468468
}) : (
469469
<div className="loader"></div>
470470
)

lib/view/recentsubmissions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const RecentSubmissions = ({actions})=>{
2323
<div className="action">
2424
{actions && actions.map(action=>{
2525
return(
26-
<div className="action-view">
26+
<div className="action-view" key={action.time*Math.floor(Math.random()*100000)}>
2727
<span>{action.index}</span>
2828
<i className={"icon-"+action.icon}> {action.errtest} </i>
2929
<span>{action.time}ms</span>

0 commit comments

Comments
 (0)