Skip to content

Commit

Permalink
latest
Browse files Browse the repository at this point in the history
  • Loading branch information
nano2dev committed Mar 2, 2024
1 parent 8424b1e commit 94fddae
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/javascript/mastodon/components/status_action_bar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ class StatusActionBar extends ImmutablePureComponent {
window.NanoPay.open({
title: 'Tip',
address: raw_address.value,
description: `@${response.data.acct}`
strings: { account: `@${response.data.acct}` },
cancel: () => window.location.reload()
})

Check failure on line 159 in app/javascript/mastodon/components/status_action_bar.jsx

View workflow job for this annotation

GitHub Actions / lint

Missing semicolon
return

Check failure on line 160 in app/javascript/mastodon/components/status_action_bar.jsx

View workflow job for this annotation

GitHub Actions / lint

Arrow function expected a return value

Check failure on line 160 in app/javascript/mastodon/components/status_action_bar.jsx

View workflow job for this annotation

GitHub Actions / lint

Missing semicolon
// return window.location.href = `nano:${raw_address.value}`;
Expand All @@ -171,8 +172,10 @@ class StatusActionBar extends ImmutablePureComponent {
window.NanoPay.open({
title: 'Tip',
address: account.address,
description: `@${response.data.acct}`
strings: { account: `@${response.data.acct}` },
cancel: () => window.location.reload()
})
return
// return window.location.href = `nano:${account.address}`
}
return window.alert('This user has a Nano.to name that is invalid or expired.')
Expand Down

0 comments on commit 94fddae

Please sign in to comment.