mirror of
https://github.com/plebbit/seedit.git
synced 2026-04-20 23:28:52 -04:00
fix(topbar): prevent clicking the subs dropdown if there are no subs
This commit is contained in:
@@ -40,7 +40,7 @@ const TopBar: FC = () => {
|
||||
{t('topbar_my_subs')}
|
||||
</span>
|
||||
</div>
|
||||
<div className={styles.dropChoices} style={{ display: isClicked ? 'block' : 'none' }}>
|
||||
<div className={styles.dropChoices} style={{ display: isClicked && subscriptions?.length ? 'block' : 'none' }}>
|
||||
{subscriptions?.map((subscription: string, index: number) => (
|
||||
<Link key={index} to={`p/${subscription}`} className={styles.choice} onClick={(event) => event.preventDefault()}>
|
||||
{subscription}
|
||||
|
||||
Reference in New Issue
Block a user