Bugfix: Run the selected problem's code when teams Test in VSCode (#6)

It was previously always picking the first problem from the list (with a non-zero id).
This commit is contained in:
David Poeschl 2023-11-05 17:57:18 -08:00 committed by GitHub
parent 1583452a8a
commit f81f4124b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,7 +143,7 @@ export class BWPanel {
vscode.window.showErrorMessage('Already Running'); vscode.window.showErrorMessage('Already Running');
return; return;
} }
const problem = this.problemData.find((p) => (p.id = problemId)); const problem = this.problemData.find((p) => (p.id === problemId));
if (problem === undefined) { if (problem === undefined) {
return; return;
} }