File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ export default class Actions extends React.PureComponent {
100
100
)
101
101
else moredetails = null
102
102
}
103
- return ( < div className = "verdict" >
103
+ return ( < div className = "verdict" key = { Math . floor ( Math . random ( ) * 1000000 ) } >
104
104
< div className = "show-verdict" onClick = { this . toggleverdict } > < span > example { test . n + 1 } </ span > < i className = { "icon-" + test . icon } > </ i > </ div >
105
105
{ moredetails }
106
106
</ div > )
Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ export default class Root extends React.PureComponent {
30
30
31
31
this . state = {
32
32
desc : "codeforces div 2" ,
33
- id : 1397 ,
33
+ id : 1388 ,
34
34
finished : 0 ,
35
- changed : 1 ,
35
+ changed : 2 ,
36
36
createnv : false ,
37
37
timeremaining : 84600 ,
38
38
profimg : "//templates.joomla-monster.com/joomla30/jm-news-portal/components/com_djclassifieds/assets/images/default_profile.png"
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ export default class Play extends React.PureComponent {
62
62
fetch ( "https://source.unsplash.com/random/280x280" ) . then ( res => {
63
63
this . setState ( { image : res . url } )
64
64
} ) . 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 " } )
66
66
} )
67
67
}
68
68
Original file line number Diff line number Diff line change @@ -464,7 +464,7 @@ export default class Problems extends React.PureComponent {
464
464
: null }
465
465
< div className = "problems" style = { { display : "flex" } } >
466
466
{ 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 } />
468
468
} ) : (
469
469
< div className = "loader" > </ div >
470
470
)
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const RecentSubmissions = ({actions})=>{
23
23
< div className = "action" >
24
24
{ actions && actions . map ( action => {
25
25
return (
26
- < div className = "action-view" >
26
+ < div className = "action-view" key = { action . time * Math . floor ( Math . random ( ) * 100000 ) } >
27
27
< span > { action . index } </ span >
28
28
< i className = { "icon-" + action . icon } > { action . errtest } </ i >
29
29
< span > { action . time } ms</ span >
You can’t perform that action at this time.
0 commit comments