mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2025-12-23 13:12:42 +01:00
Improve donation button
This commit is contained in:
@@ -35,10 +35,10 @@ const shellModule = {
|
||||
cmd.command("donate", (c:CommandInput) => {
|
||||
|
||||
if(appState.onDonationClicked()) {
|
||||
sendAnalyticsEvent({eventCategory: "DonationButton", eventAction: "Clicked"})
|
||||
sendAnalyticsEvent({eventCategory: "Donation", eventAction: "DonateButtonClicked"})
|
||||
}
|
||||
else {
|
||||
sendAnalyticsEvent({eventCategory: "DonationButton", eventAction: "ClickedAgain"})
|
||||
sendAnalyticsEvent({eventCategory: "Donation", eventAction: "DonateButtonClickedAgain"})
|
||||
}
|
||||
|
||||
appState.addCommandResult(c.input, <DonateResultView />);
|
||||
|
||||
Reference in New Issue
Block a user