@@ -195,13 +195,13 @@
@@ -248,13 +246,13 @@
Nom de compte Riot Games
@@ -264,13 +262,13 @@
Tag (exemple: EUW)
@@ -278,7 +276,7 @@
@@ -287,7 +285,7 @@
Déconnexion
diff --git a/src/app/routes/profile/profile.component.ts b/src/app/routes/profile/profile.component.ts
index 2948a675..13cd79f0 100644
--- a/src/app/routes/profile/profile.component.ts
+++ b/src/app/routes/profile/profile.component.ts
@@ -60,8 +60,14 @@ export class ProfilePageComponent implements OnInit, OnChanges {
@Output() successMessageChange = new EventEmitter
();
updatePlayerForm = new FormGroup({
- fullName: new FormControl('', [Validators.maxLength(100)]),
- nickname: new FormControl('', [Validators.maxLength(100)]),
+ fullName: new FormControl('', [
+ Validators.maxLength(100),
+ Validators.required,
+ ]),
+ nickname: new FormControl('', [
+ Validators.maxLength(100),
+ Validators.required,
+ ]),
profilePictureUrl: new FormControl('', [Validators.maxLength(500)]),
riotGamesNickname: new FormControl('', [Validators.maxLength(500)]),
riotGamesTagLine: new FormControl('', [Validators.maxLength(500)]),
@@ -131,6 +137,15 @@ export class ProfilePageComponent implements OnInit, OnChanges {
if (this.loading == false) {
let riotGamesNickname: string | undefined = undefined;
let riotGamesTagLine: string | undefined = undefined;
+ let profilePictureUrl: string | undefined = undefined;
+
+ if (
+ this.updatePlayerForm.controls['profilePictureUrl'].value != null &&
+ this.updatePlayerForm.controls['profilePictureUrl'].value != ''
+ ) {
+ profilePictureUrl =
+ this.updatePlayerForm.controls['profilePictureUrl'].value;
+ }
if (
this.updatePlayerForm.controls['riotGamesNickname'].value != null &&
@@ -153,7 +168,7 @@ export class ProfilePageComponent implements OnInit, OnChanges {
.update(
this.updatePlayerForm.controls['fullName'].value,
this.updatePlayerForm.controls['nickname'].value,
- this.updatePlayerForm.controls['profilePictureUrl'].value,
+ profilePictureUrl,
riotGamesNickname,
riotGamesTagLine,
)
diff --git a/src/app/shared/services/common/gameon-player.service.ts b/src/app/shared/services/common/gameon-player.service.ts
index 11142206..c82b2db4 100644
--- a/src/app/shared/services/common/gameon-player.service.ts
+++ b/src/app/shared/services/common/gameon-player.service.ts
@@ -47,7 +47,7 @@ export class GameOnPlayerService {
update(
fullName: any,
nickname: any,
- profilePicUrl: any,
+ profilePicUrl?: any,
riotGamesNickname?: string,
riotGamesTagLine?: string,
): Observable {
diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts
index 4bac5249..f060eb1d 100644
--- a/src/environments/environment.prod.ts
+++ b/src/environments/environment.prod.ts
@@ -6,5 +6,5 @@ export const environment = {
realm: 'gameon',
clientId: 'gameon-front',
},
- currentLoLPatch: '15.7.1',
+ currentLoLPatch: '15.9.1',
};
diff --git a/src/environments/environment.ts b/src/environments/environment.ts
index cf8d8c7a..cc326a3d 100644
--- a/src/environments/environment.ts
+++ b/src/environments/environment.ts
@@ -6,5 +6,5 @@ export const environment = {
realm: 'gameon',
clientId: 'gameon-front-dev',
},
- currentLoLPatch: '15.7.1',
+ currentLoLPatch: '15.9.1',
};