problem: we are publishing vote note even if vote failed

This commit is contained in:
gsovereignty
2024-08-14 14:13:12 +08:00
parent 119ac5d2d2
commit 216c4edf17
2 changed files with 101 additions and 101 deletions

View File

@@ -32,19 +32,19 @@
.publish()
.then((x) => {
console.log(x);
if (direction === 'ratify') {
let content = `I've voted to ratify your merit request! ${merit.Problem()} \n\n ${merit.Solution() ? merit.Solution() : ''}`;
prepareMeritNoteEvent({
ndk,
merit,
content
})
.publish()
.then((x) => {
console.log(x);
});
}
});
if (direction === 'ratify') {
let content = `I've voted to ratify your merit request! ${merit.Problem()} \n\n ${merit.Solution() ? merit.Solution() : ''}`;
prepareMeritNoteEvent({
ndk,
merit,
content
})
.publish()
.then((x) => {
console.log(x);
});
}
}
$: currentUserHasVotepower = false;