From 9ef74d7a426dcb60489b311246d93c2d74db2533 Mon Sep 17 00:00:00 2001 From: PhilReact Date: Fri, 15 Nov 2024 20:39:29 +0200 Subject: [PATCH] fixes --- src/App.tsx | 1 + src/components/Group/ListOfGroupPromotions.tsx | 6 +++--- src/components/Group/ThingsToDoInitial.tsx | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index e435c15..5280f97 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2301,6 +2301,7 @@ function App() { onClick={() => { setRawWallet(null); setExtstate("not-authenticated"); + logoutFunc() }} src={Return} /> diff --git a/src/components/Group/ListOfGroupPromotions.tsx b/src/components/Group/ListOfGroupPromotions.tsx index c306326..2e61bfb 100644 --- a/src/components/Group/ListOfGroupPromotions.tsx +++ b/src/components/Group/ListOfGroupPromotions.tsx @@ -162,7 +162,7 @@ export const ListOfGroupPromotions = () => { }); await Promise.all(getPromos); - const groupWithInfo = await getGroupNames(data); + const groupWithInfo = await getGroupNames(data.sort((a, b) => b.created - a.created)); setPromotions(groupWithInfo); } catch (error) { console.error(error); @@ -559,10 +559,10 @@ export const ListOfGroupPromotions = () => { }} >