{#if editing} { if (!$authData || newComment.length <= 0) return try { await getClient().editComment({ auth: $authData.token, 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: ToastType.success, }) } catch (err) { toast({ // @ts-ignore i hate this content: err, type: ToastType.error, }) } }} > Edit comment {/if}