chore: formatting

This commit is contained in:
Kieran 2023-12-10 17:41:25 +00:00
parent a1e9df8254
commit d00f8b0d85
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
3 changed files with 20 additions and 19 deletions

View File

@ -158,7 +158,7 @@ export function NoteCreator() {
async function sendNote() { async function sendNote() {
const ev = await buildNote(); const ev = await buildNote();
if (ev) { if (ev) {
trackEvent("PostNote") trackEvent("PostNote");
if (ev.tags.find(a => a[0] === "content-warning")) { if (ev.tags.find(a => a[0] === "content-warning")) {
trackEvent("PostNote:WithContentWarning"); trackEvent("PostNote:WithContentWarning");
} }

View File

@ -148,8 +148,9 @@ export default function ZapPoolPage() {
</p> </p>
<p> <p>
{wallet && ( {wallet && (
<AsyncButton onClick={async () => { <AsyncButton
trackEvent("ZapPool:Manual") onClick={async () => {
trackEvent("ZapPool:Manual");
await ZapPoolController?.payout(wallet); await ZapPoolController?.payout(wallet);
}}> }}>
<FormattedMessage defaultMessage="Payout Now" id="+PzQ9Y" /> <FormattedMessage defaultMessage="Payout Now" id="+PzQ9Y" />

View File

@ -168,7 +168,7 @@ class ZapPool extends ExternalStore<Array<ZapPoolRecipient>> {
if (wallet.canAutoLogin()) { if (wallet.canAutoLogin()) {
await wallet.login(); await wallet.login();
} }
trackEvent("ZapPool:Automatic") trackEvent("ZapPool:Automatic");
await this.payout(wallet); await this.payout(wallet);
} }
} }