Fix for case-insensitive address prefix search.

fixes #301
This commit is contained in:
softsimon 2021-01-19 13:01:47 +07:00
parent b4faf90de3
commit 8369bb279a

View File

@ -85,6 +85,6 @@ export class ElectrsApiService {
}
getAddressesByPrefix$(prefix: string): Observable<string[]> {
return this.httpClient.get<string[]>(this.apiBaseUrl + this.apiBasePath + '/api/address-prefix/' + prefix);
return this.httpClient.get<string[]>(this.apiBaseUrl + this.apiBasePath + '/api/address-prefix/' + prefix.toLowerCase());
}
}