From 0c37767d68731c0da1d47a88e0f3307c9ba7abeb Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Tue, 1 Aug 2023 05:26:10 -0700 Subject: [PATCH] fix(booktable): memoized swap/fiat columns --- frontend/src/components/BookTable/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/BookTable/index.tsx b/frontend/src/components/BookTable/index.tsx index 5bc04601..b3c51d4b 100644 --- a/frontend/src/components/BookTable/index.tsx +++ b/frontend/src/components/BookTable/index.tsx @@ -627,7 +627,7 @@ const BookTable = ({ }, }, }; - }, []); + }, [fav.mode]); const filteredColumns = function (maxWidth: number) { const useSmall = maxWidth < 70;