mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 01:26:01 -08:00
Run pre-commit hooks over existing codebase
Co-Authored-By: Ben Phelps <ben@phelps.io>
This commit is contained in:
@@ -27,7 +27,7 @@ export default function Component({ service }) {
|
||||
|
||||
const params = {
|
||||
convert: `${currencyCode}`,
|
||||
}
|
||||
};
|
||||
|
||||
// slugs >> symbols, not both
|
||||
if (slugs?.length) {
|
||||
@@ -59,7 +59,9 @@ export default function Component({ service }) {
|
||||
}
|
||||
|
||||
const { data } = statsData;
|
||||
const validCryptos = Object.values(data).filter(crypto => crypto.quote[currencyCode][`percent_change_${dateRange}`] !== null)
|
||||
const validCryptos = Object.values(data).filter(
|
||||
(crypto) => crypto.quote[currencyCode][`percent_change_${dateRange}`] !== null,
|
||||
);
|
||||
|
||||
return (
|
||||
<Container service={service}>
|
||||
@@ -84,9 +86,7 @@ export default function Component({ service }) {
|
||||
</div>
|
||||
<div
|
||||
className={`font-bold w-10 mr-2 ${
|
||||
crypto.quote[currencyCode][`percent_change_${dateRange}`] > 0
|
||||
? "text-emerald-300"
|
||||
: "text-rose-300"
|
||||
crypto.quote[currencyCode][`percent_change_${dateRange}`] > 0 ? "text-emerald-300" : "text-rose-300"
|
||||
}`}
|
||||
>
|
||||
{crypto.quote[currencyCode][`percent_change_${dateRange}`].toFixed(2)}%
|
||||
|
||||
Reference in New Issue
Block a user