Fix various small issues

This commit is contained in:
Bojan Mojsilovic 2024-02-06 17:19:10 +01:00
parent 025255af67
commit dea59cf2bd
3 changed files with 5 additions and 5 deletions

View File

@ -623,9 +623,9 @@ const EditBox: Component<{
if (account) {
let tags = referencesToTags(messageToSend);
if (props.replyToNote) {
const rep = props.replyToNote;
if (rep) {
const rootTag = rep.post.tags.find(t => t[0] === 'e' && t[3] === 'root');
// If the note has a root tag, that meens it is not a root note itself
@ -664,7 +664,7 @@ const EditBox: Component<{
toast?.sendSuccess(intl.formatMessage(tToast.publishNoteSuccess));
props.onSuccess && props.onSuccess({ success, reasons, note });
setIsPostingInProgress(false);
saveNoteDraft(account.publicKey, '', props.replyToNote?.post.id)
saveNoteDraft(account.publicKey, '', rep?.post.noteId)
clearEditor();
}
unsub();

View File

@ -75,7 +75,7 @@
font-weight: 400;
line-height: 20px;
margin-top: 4px;
margin-bottom: 16px;
margin-bottom: 12px;
width: 100%;
overflow: hidden;
}

View File

@ -25,7 +25,7 @@
font-weight: 400;
line-height: 24px;
width: 100%;
margin-bottom: 17px;
margin-bottom: 12px;
a:hover {
text-decoration: underline;