Bug onClick
This commit is contained in:
1 parent
5d470480de
commit
95d51b4332
2 files changed
+4
-4
No files matched your search
@@ -63,7 +63,7 @@ function newCurrentBot() {
|
||||
|
||||
function onClick() {
|
||||
|
||||
if (sharedStatus.currentUserBotIndex + 1 === window.USER_PROFILE.devTeams.length) {
|
||||
if (sharedStatus.currentUserBotIndex + 1 === window.CURRENT_BOT = window.USER_PROFILE.devTeams[sharedStatus.currentDevTeamIndex].userBots.length) {
|
||||
|
||||
sharedStatus.currentUserBotIndex = 0;
|
||||
window.CURRENT_BOT = window.USER_PROFILE.devTeams[sharedStatus.currentDevTeamIndex].userBots[sharedStatus.currentUserBotIndex].displayName;
|
||||
@@ -71,7 +71,7 @@ function newCurrentBot() {
|
||||
return;
|
||||
}
|
||||
|
||||
if (sharedStatus.currentUserBotIndex + 1 < window.USER_PROFILE.devTeams.length) {
|
||||
if (sharedStatus.currentUserBotIndex + 1 < window.CURRENT_BOT = window.USER_PROFILE.devTeams[sharedStatus.currentDevTeamIndex].userBots.length) {
|
||||
|
||||
sharedStatus.currentUserBotIndex++;
|
||||
window.CURRENT_BOT = window.USER_PROFILE.devTeams[sharedStatus.currentDevTeamIndex].userBots[sharedStatus.currentUserBotIndex].displayName;
|
||||
|
||||
@@ -71,14 +71,14 @@ function newCurrentProcess() {
|
||||
|
||||
function onClick() {
|
||||
|
||||
if (sharedStatus.currentProcessIndex + 1 === window.USER_PROFILE.devTeams[sharedStatus.currentDevTeamIndex].userBots.length) {
|
||||
if (sharedStatus.currentProcessIndex + 1 === window.CURRENT_PROCESS = window.USER_PROFILE.devTeams[sharedStatus.currentDevTeamIndex].userBots[sharedStatus.currentUserBotIndex].processes.length) {
|
||||
|
||||
sharedStatus.currentProcessIndex = 0;
|
||||
window.CURRENT_PROCESS = window.USER_PROFILE.devTeams[sharedStatus.currentDevTeamIndex].userBots[sharedStatus.currentUserBotIndex].processes[sharedStatus.currentProcessIndex].name;
|
||||
return;
|
||||
}
|
||||
|
||||
if (sharedStatus.currentProcessIndex + 1 < window.USER_PROFILE.devTeams[sharedStatus.currentDevTeamIndex].userBots.length) {
|
||||
if (sharedStatus.currentProcessIndex + 1 < window.CURRENT_PROCESS = window.USER_PROFILE.devTeams[sharedStatus.currentDevTeamIndex].userBots[sharedStatus.currentUserBotIndex].processes.length) {
|
||||
|
||||
sharedStatus.currentProcessIndex++;
|
||||
window.CURRENT_PROCESS = window.USER_PROFILE.devTeams[sharedStatus.currentDevTeamIndex].userBots[sharedStatus.currentUserBotIndex].processes[sharedStatus.currentProcessIndex].name;
|
||||
|
||||
Reference in new issue
Block a user