We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bf5802 commit 46aa755Copy full SHA for 46aa755
1 file changed
packages/apps/dashboard/server/src/modules/stats/stats.service.ts
@@ -347,7 +347,7 @@ export class StatsService implements OnModuleInit {
347
],
348
);
349
} else if (this.envConfigService.hmtPriceSource.includes('coinlore')) {
350
- if (!data || !data[0] || !data[0].price_usd) {
+ if (!data || !data[0] || !data[0].price_usd || data[0].symbol !== 'HMT') {
351
throw new Error('Failed to fetch HMT price from Coinlore API');
352
}
353
hmtPrice = parseFloat(data[0].price_usd);
0 commit comments