From f128099e875c71c02f85b3ab7598af38537ab2ef Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 22 Apr 2024 15:46:32 -0400 Subject: [PATCH] Fix --- structures/Akinator.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/structures/Akinator.js b/structures/Akinator.js index 272cf502..401d01fa 100644 --- a/structures/Akinator.js +++ b/structures/Akinator.js @@ -9,6 +9,7 @@ class Akinator { this.childMode = Boolean(childMode); this.currentStep = 0; + this.stepLastProposition = ''; this.progress = '0.00000'; this.answers = answers; this.question = null; @@ -40,7 +41,7 @@ class Akinator { sid: '1', cm: this.childMode, answer, - step_last_proposition: '', + step_last_proposition: this.stepLastProposition, session: this.session, signature: this.signature }); @@ -93,6 +94,7 @@ class Akinator { signature: this.signature }); this.guessed = null; + this.stepLastProposition = body.step; this.progress = body.progression; this.question = body.question; return this;