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 = () => { }} >