chore: more linter errors

This commit is contained in:
Vasily Zubarev
2025-04-10 11:58:28 +02:00
parent 29a4ac4977
commit d88d0a1174
14 changed files with 67 additions and 62 deletions

View File

@@ -16,10 +16,6 @@ export const FormConvertCurrency = ({
date?: Date | undefined
onChange?: (value: number) => void
}) => {
if (!originalTotal || !originalCurrencyCode || !targetCurrencyCode || originalCurrencyCode === targetCurrencyCode) {
return <></>
}
const normalizedDate = startOfDay(date || new Date(Date.now() - 24 * 60 * 60 * 1000))
const normalizedDateString = format(normalizedDate, "yyyy-MM-dd")
const [exchangeRate, setExchangeRate] = useState(0)
@@ -54,6 +50,10 @@ export const FormConvertCurrency = ({
onChange?.(convertedTotal)
}, [convertedTotal])
if (!originalTotal || !originalCurrencyCode || !targetCurrencyCode || originalCurrencyCode === targetCurrencyCode) {
return <></>
}
return (
<div className="flex flex-row gap-2 items-center">
{isLoading ? (

View File

@@ -117,7 +117,7 @@ export const FormDate = ({
if (!isNaN(newDate.getTime())) {
setDate(newDate)
}
} catch (_) {}
} catch {}
}
return (