Skip to content

Commit f1793f2

Browse files
committed
fix: remove useMemo usage
1 parent 78eef50 commit f1793f2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

components/borrows/CardBorrow.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import {
1818
CardHeader,
1919
CardTitle,
2020
} from '@/components/ui/card'
21-
import { useMemo } from 'react'
2221
import clsx from 'clsx'
2322

2423
const checkIsDue = (borrow: Borrow) => {
@@ -34,7 +33,7 @@ const getBorrowStatus = (borrow: Borrow) => {
3433
}
3534

3635
export const CardBorrow: React.FC<{ borrow: Borrow }> = ({ borrow }) => {
37-
const isDue = useMemo(() => checkIsDue(borrow), [borrow])
36+
const isDue = checkIsDue(borrow)
3837

3938
return (
4039
<Card

0 commit comments

Comments
 (0)