Skip to content

Commit

Permalink
Simplify the return type of the run method in PlausibleCallback
Browse files Browse the repository at this point in the history
  • Loading branch information
wwahammy committed Oct 12, 2022
1 parent 13be1e0 commit 67d611b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class PlausibleCallback extends DonationSubmitterCallbackAction {
return !!(this.props.props.getPlausible && this.props.props.getPlausible())
}

run(): void | Promise<void> {
run(): void {
this.plausibleFunction('payment_succeeded', {
props: {
amount: this.props.result?.charge?.amount && (this.props.result.charge.amount / 100)
Expand Down

0 comments on commit 67d611b

Please sign in to comment.