SES-135 abilities card #63
@ -23,7 +23,7 @@ export class AbilitiesComponent implements OnInit {
|
|||||||
|
|
||||||
getCharacterStats() {
|
getCharacterStats() {
|
||||||
this.store.select( s => s.playerStore.characterId).pipe(first()).subscribe((characterId) => {
|
this.store.select( s => s.playerStore.characterId).pipe(first()).subscribe((characterId) => {
|
||||||
this.characterService.getCharacterStats(2).pipe(first()).subscribe((characterStats) => {
|
this.characterService.getCharacterStats(characterId).pipe(first()).subscribe((characterStats) => {
|
||||||
console.log(characterStats)
|
console.log(characterStats)
|
||||||
this.characterStats = characterStats;
|
this.characterStats = characterStats;
|
||||||
}, (error: ErrorResponse | HttpErrorResponse) => {
|
}, (error: ErrorResponse | HttpErrorResponse) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user