if no version passed use version selected

This commit is contained in:
MathieuG-P
2022-06-07 22:22:46 +02:00
parent 818bc83e33
commit 5e870d56fc
@@ -65,7 +65,8 @@ export class BsDownloaderService{
});
}
public async download(bsVersion: BSVersion): Promise<void>{
public async download(bsVersion?: BSVersion): Promise<void>{
if(!bsVersion){ bsVersion = this.selectedBsVersion$.value; }
let username = localStorage.getItem("username");
if(!username){
const res = await this.modalService.openModal(ModalType.STEAM_LOGIN);