remove console log, and bug fix

This commit is contained in:
MathieuG-P
2022-05-26 22:38:36 +02:00
parent 248953b049
commit 273efc68ea
+1 -2
View File
@@ -14,7 +14,6 @@ export class ModalService{
}
private close(){
console.log("*** CLOSE ***")
if(this.resolver){ this.resolve({exitCode: ModalExitCode.NO_CHOICE}); }
this.modalType$.next(null);
}
@@ -37,7 +36,7 @@ export class ModalService{
const promise = new Promise<ModalResponse>((resolve) => { this.resolver = resolve; });
promise.then(() => this.close());
this.modalType$.next(modalType);
return await promise;
return promise;
}
}