mirror of
https://github.com/MAGICGrants/campaign-site.git
synced 2026-01-09 12:27:59 -05:00
Update [slug].tsx
This commit is contained in:
@@ -158,8 +158,6 @@ export async function getServerSideProps({ params }: { params: any }) {
|
||||
|
||||
const content = await markdownToHtml(post.content || '')
|
||||
|
||||
const crypto = await fetchGetJSONAuthedBTCPay()
|
||||
|
||||
let stats : any = {};
|
||||
|
||||
for(let i=0;i<projects.length;i++){
|
||||
@@ -183,6 +181,7 @@ export async function getServerSideProps({ params }: { params: any }) {
|
||||
totaldonations: projects[i].fiattotaldonations,
|
||||
}
|
||||
} else {
|
||||
const crypto = await fetchGetJSONAuthedBTCPay(projects[i].slug)
|
||||
xmr = await crypto.xmr
|
||||
btc = await crypto.btc
|
||||
usd = await fetchGetJSONAuthedStripe()
|
||||
|
||||
Reference in New Issue
Block a user