mirror of
https://github.com/marcogll/TaxHacker_s23.git
synced 2026-01-13 13:25:18 +00:00
chore: more linter errors
This commit is contained in:
@@ -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 ? (
|
||||
|
||||
Reference in New Issue
Block a user