add boost back to posts & fix header problem

This commit is contained in:
keyan 2021-09-24 18:43:30 -05:00
parent d9239a148a
commit 8c5832c3e6
2 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ import { useEffect } from 'react'
import { randInRange } from '../lib/rand'
function WalletSummary ({ me }) {
return `${me.sats} \\ ${me.stacked}`
return `${me?.sats} \\ ${me?.stacked}`
}
function RefreshableLink ({ href, children, ...props }) {
@ -44,8 +44,8 @@ export default function Header () {
<link rel='shortcut icon' href={me?.hasNewNotes ? '/favicon-notify.png' : '/favicon.png'} />
</Head>
<div className='position-relative mr-1'>
<NavDropdown className='px-0' title={`@${me.name}`} alignRight>
<Link href={'/' + me.name} passHref>
<NavDropdown className='px-0' title={`@${me?.name}`} alignRight>
<Link href={'/' + me?.name} passHref>
<NavDropdown.Item>
profile
{me && !me.bio &&

View File

@ -28,7 +28,7 @@ export function PostForm () {
}
if (router.query.type === 'discussion') {
return <DiscussionForm />
return <DiscussionForm adv />
} else {
return <LinkForm />
}