Add difficulty chart timespan selection

This commit is contained in:
nymkappa committed 2022-02-17 09:41:05 +09:00
1 parent 17459c2fdb
commit ad73e14db9
7 files changed
+93 -41

No files matched your search

+1 -1
View File
@@ -150,7 +150,7 @@ export class ApiService {
);
}
getHistoricalDifficulty$(interval: string | undefined): Observable<any[]> {
getHistoricalDifficulty$(interval: string | undefined): Observable<any> {
return this.httpClient.get<any[]>(
this.apiBaseUrl + this.apiBasePath + `/api/v1/mining/difficulty` +
(interval !== undefined ? `/${interval}` : '')