X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FMyGames.vue;h=1e1c9e7cb420ea5d5c6fc4ada911b77e5e3f74b1;hp=7615308b730bc721ae73c543146279d441a5fbcd;hb=7ebc0408a76b4a966273190a2ade49e0f97099be;hpb=68e3aa8c7a92efe3461bfc5c904f9763bca5d2da diff --git a/client/src/views/MyGames.vue b/client/src/views/MyGames.vue index 7615308b..1e1c9e7c 100644 --- a/client/src/views/MyGames.vue +++ b/client/src/views/MyGames.vue @@ -53,7 +53,7 @@ export default { corr: Number.MAX_SAFE_INTEGER }, // hasMore == TRUE: a priori there could be more games to load - hasMore: { live: true, corr: true }, + hasMore: { live: true, corr: store.state.user.id > 0 }, conn: null, connexionString: "" }; @@ -129,12 +129,7 @@ export default { } } ); - } else { - this.loadMore( - "live", - () => this.loadMore("corr", adjustAndSetDisplay) - ); - } + } else this.loadMore("live", adjustAndSetDisplay); }); }, beforeDestroy: function() { @@ -297,7 +292,7 @@ export default { } }, loadMore: function(type, cb) { - if (type == "corr") { + if (type == "corr" && this.st.user.id > 0) { ajax( "/completedgames", "GET",