Commit afcd08c7 authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix

parent 2353a7a4
......@@ -25,7 +25,7 @@ export class LobbyComponent {
suggestion = this.searchControl.valueChanges.pipe(
distinctUntilChanged(),
filter(name => name),
switchMap(name => this.http.get(`https://api.mycard.moe/ygopro/suggest/${name}`)),
switchMap(name => this.http.get<{ value: string }[]>(`https://api.mycard.moe/ygopro/suggest/${name}`)),
map(data => data.map(item => item.value))
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment