- this.modalProb.added = Date.now();
- this.modalProb.preview = false;
- this.myProblems.push(JSON.parse(JSON.stringify(this.modalProb)));
+ this.myProblems.unshift({
+ added: Date.now(),
+ id: response.id,
+ uid: user.id,
+ fen: this.modalProb.fen,
+ instructions: this.modalProb.instructions,
+ solution: this.modalProb.solution,
+ });