projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Knightrelay1. Some fixes. Move odd 'isAttackedBy_multiple_colors' to Checkered...
[vchess.git]
/
client
/
src
/
views
/
MyGames.vue
diff --git
a/client/src/views/MyGames.vue
b/client/src/views/MyGames.vue
index
1f1da59
..
a9e69f6
100644
(file)
--- a/
client/src/views/MyGames.vue
+++ b/
client/src/views/MyGames.vue
@@
-120,8
+120,8
@@
export default {
credentials: true,
data: { cursor: this.cursor },
success: (res2) => {
credentials: true,
data: { cursor: this.cursor },
success: (res2) => {
- if (res2.games.length > 0) {
- const L = res2.games.length;
+ const L = res2.games.length;
+ if (L > 0) {
this.cursor = res2.games[L - 1].created;
let completedGames = res2.games;
completedGames.forEach(g => g.type = "corr");
this.cursor = res2.games[L - 1].created;
let completedGames = res2.games;
completedGames.forEach(g => g.type = "corr");
@@
-295,8
+295,8
@@
export default {
credentials: true,
data: { cursor: this.cursor },
success: (res) => {
credentials: true,
data: { cursor: this.cursor },
success: (res) => {
- if (res.games.length > 0) {
- const L = res.games.length;
+ const L = res.games.length;
+ if (L > 0) {
this.cursor = res.games[L - 1].created;
let moreGames = res.games;
moreGames.forEach(g => g.type = "corr");
this.cursor = res.games[L - 1].created;
let moreGames = res.games;
moreGames.forEach(g => g.type = "corr");