mirror of
https://github.com/aljazceru/hypergolic.git
synced 2025-12-18 14:04:21 +01:00
problem: we are publishing vote note even if vote failed
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user