Skip to content

Commit

Permalink
fix(papers-please): flame fatales fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
VodBox committed Aug 12, 2023
1 parent 46cbef0 commit 15aabec
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/channels/papers-please/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,16 @@ export function PapersPlease(props: ChannelProps) {
</TotalEl>
<SupplementaryText style={{ ...currentCountry.supplementTextLocation }}>
<div>{goalAmount}</div>
<div>{event.shortname}</div>
{/*
* GDQ shortnames are typically 8 characters, except for Frame Fatales events.
* Since FF events extend beyond the bounds, but shortname still needs the year,
* we truncate the shortname to 12 characters to omit the year in this case.
*
* This should be looked at again in the future to see if there's a better solution.
*/}
<div>{event.shortname.slice(0, 12)}</div>
<div>{event.beneficiaryShort}</div>
<div>06/05/2023 {/* TEMP DATE! Should add this to the event obj */}</div>
<div>2023/08/21 {/* TEMP DATE! Should add this to the event obj */}</div>
</SupplementaryText>
<FullWidthImage src={currentCountry.passportInner} />
</Passport>
Expand Down

0 comments on commit 15aabec

Please sign in to comment.