mirror of
https://github.com/MAGICGrants/campaign-site.git
synced 2026-01-09 12:27:59 -05:00
fix(utils.md): serialization error
This commit is contained in:
@@ -47,7 +47,7 @@ export function getProjectBySlug(slug: string, fundSlug: FundSlug) {
|
||||
socialLinks: data.socialLinks,
|
||||
goal: data.goal,
|
||||
isFunded: !!data.isFunded,
|
||||
staticXMRaddress: data.staticXMRaddress,
|
||||
staticXMRaddress: data.staticXMRaddress || null,
|
||||
numDonationsBTC: data.numDonationsBTC || 0,
|
||||
numDonationsXMR: data.numDonationsXMR || 0,
|
||||
numDonationsFiat: data.numDonationsFiat || 0,
|
||||
@@ -91,7 +91,6 @@ export async function getProjects(fundSlug?: FundSlug) {
|
||||
// Get donation stats for active projects
|
||||
await Promise.all(
|
||||
projects.map(async (project) => {
|
||||
console.log(project.isFunded)
|
||||
if (project.isFunded) return
|
||||
|
||||
const donations = !env.BUILD_MODE
|
||||
|
||||
@@ -11,7 +11,7 @@ export type ProjectItem = {
|
||||
website: string
|
||||
socialLinks: string[]
|
||||
date: string
|
||||
staticXMRaddress?: string
|
||||
staticXMRaddress?: string | null
|
||||
goal: number
|
||||
isFunded?: boolean
|
||||
numDonationsBTC: number
|
||||
|
||||
Reference in New Issue
Block a user