{#if editing} { if (!$profile?.jwt || newComment.length <= 0) return try { await getClient().editComment({ comment_id: node.comment_view.comment.id, content: newComment, }) node.comment_view.comment.content = newComment editing = false toast({ content: 'Successfully edited comment. You may need to refresh to see changes.', type: 'success', }) } catch (err) { toast({ // @ts-ignore i hate this content: err, type: 'error', }) } }} > Edit comment {/if}