mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 11:30:12 +08:00
fix: only send hints when it's not empty
This commit is contained in:
1 parent
a8ba2a640b
commit
56d96cf7a0
1 file changed
+4
-2
@@ -47,7 +47,8 @@ export default class SessionHandler {
|
|||||||
t.completed = true
|
t.completed = true
|
||||||
})
|
})
|
||||||
|
|
||||||
this.session.hints.push(stage.hints)
|
if (stage.hints && stage.hints.length > 0)
|
||||||
|
this.session.hints.push(stage.hints)
|
||||||
|
|
||||||
this.addNewTasks()
|
this.addNewTasks()
|
||||||
|
|
||||||
@@ -56,7 +57,8 @@ export default class SessionHandler {
|
|||||||
hints: stage.hints,
|
hints: stage.hints,
|
||||||
callback: () => {
|
callback: () => {
|
||||||
pushToSession(this.session.id, 'tasks', this.session.tasks)
|
pushToSession(this.session.id, 'tasks', this.session.tasks)
|
||||||
pushToSession(this.session.id, 'hints', stage.hints)
|
if (stage.hints && stage.hints.length > 0)
|
||||||
|
pushToSession(this.session.id, 'hints', stage.hints)
|
||||||
pushToSession(this.session.id, 'status', this.session.status)
|
pushToSession(this.session.id, 'status', this.session.status)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user