From 5c2cd4d5d5e784b43caa9e5c9cbeacefebdd11c8 Mon Sep 17 00:00:00 2001 From: Natalie Rose Date: Fri, 18 Sep 2026 14:31:05 +1000 Subject: [PATCH] Embassy fixes --- app/components/embassy/allianceTab.tsx | 30 ++++++++++++++------------ app/components/embassy/stashTab.tsx | 21 +++++++++++------- app/util.test.ts | 2 ++ app/util.ts | 5 ++++- package-lock.json | 16 +++++++------- package.json | 2 +- 6 files changed, 44 insertions(+), 32 deletions(-) diff --git a/app/components/embassy/allianceTab.tsx b/app/components/embassy/allianceTab.tsx index 79584409..3f22a91d 100644 --- a/app/components/embassy/allianceTab.tsx +++ b/app/components/embassy/allianceTab.tsx @@ -118,29 +118,31 @@ const AllianceTab: React.FunctionComponent = ({ building, alliance, isLea ) : ( <> -

+

Description: {alliance.description} -

+
{alliance.forum_uri && ( -

+

Forums:{' '} {alliance.forum_uri} -

+
)} -
- Announcements: - {/* - The legacy client did a string replace of '\n', which only converts the first - newline. Splitting handles all of them. - */} - {(alliance.announcements ?? '').split('\n').map((line) => ( -

{line}

- ))} -
+ {alliance.announcements ? ( +
+ Announcements: + {/* + The legacy client did a string replace of '\n', which only converts the first + newline. Splitting handles all of them. + */} + {(alliance.announcements ?? '').split('\n').map((line) => ( +

{line}

+ ))} +
+ ) : undefined}