mirror of
https://github.com/plebbit/seedit.git
synced 2026-04-19 06:39:18 -04:00
fix(post): share links could be broken for posts that failed to publish
This commit is contained in:
@@ -79,7 +79,7 @@ const ShareButton = ({ cid, subplebbitAddress }: { cid: string; subplebbitAddres
|
||||
};
|
||||
|
||||
return (
|
||||
<li className={`${!hasCopied ? styles.button : styles.text}`} onClick={handleCopy}>
|
||||
<li className={`${!hasCopied ? styles.button : styles.text}`} onClick={() => cid && handleCopy()}>
|
||||
{hasCopied ? t('link_copied') : t('share')}
|
||||
</li>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user