txn.fromId).length
- const mostRecentDonor = await getUser(txns[txns.length - 1].fromId)
+ const donorId = last(txns)?.fromId
+ const mostRecentDonor = donorId ? await getUser(donorId) : undefined
return {
props: {
@@ -90,7 +92,7 @@ export default function Charity(props: {
matches: { [charityId: string]: number }
txns: Txn[]
numDonors: number
- mostRecentDonor: User
+ mostRecentDonor?: User
}) {
const { totalRaised, charities, matches, numDonors, mostRecentDonor } = props
@@ -149,8 +151,8 @@ export default function Charity(props: {
},
{
name: 'Most recent donor',
- stat: mostRecentDonor.name ?? 'Nobody',
- url: `/${mostRecentDonor.username}`,
+ stat: mostRecentDonor?.name ?? 'Nobody',
+ url: `/${mostRecentDonor?.username}`,
},
]}
/>
diff --git a/web/pages/create.tsx b/web/pages/create.tsx
index ec86a277..bf15cfd9 100644
--- a/web/pages/create.tsx
+++ b/web/pages/create.tsx
@@ -255,8 +255,8 @@ export function NewContract(props: {
}}
choicesMap={{
'Yes / No': 'BINARY',
- 'Free response': 'FREE_RESPONSE',
- Numeric: 'PSEUDO_NUMERIC',
+ // 'Free response': 'FREE_RESPONSE',
+ // Numeric: 'PSEUDO_NUMERIC',
}}
isSubmitting={isSubmitting}
className={'col-span-4'}
diff --git a/web/public/atlas/atlas-logo-white.svg b/web/public/atlas/atlas-logo-white.svg
new file mode 100644
index 00000000..d90f3006
--- /dev/null
+++ b/web/public/atlas/atlas-logo-white.svg
@@ -0,0 +1 @@
+
\ No newline at end of file