From 3e7f02e0c9631ce7658bcd9b53efcf51aaf3906d Mon Sep 17 00:00:00 2001 From: koalasat Date: Sun, 23 Mar 2025 10:31:29 +0100 Subject: [PATCH] Better loading --- frontend/src/components/OrderDetails/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/OrderDetails/index.tsx b/frontend/src/components/OrderDetails/index.tsx index a5d47eb4..c886732e 100644 --- a/frontend/src/components/OrderDetails/index.tsx +++ b/frontend/src/components/OrderDetails/index.tsx @@ -72,8 +72,8 @@ const OrderDetails = ({ }, [currentOrder]); useEffect(() => { - coordinator?.loadInfo(); - }, [coordinator.shortAlias]); + if (!coordinator?.info) coordinator?.loadInfo(); + }, [coordinator.shortAlias, coordinator.info]); const amountString = useMemo(() => { if (currentOrder === null) return;