Skip to content

Commit

Permalink
Show returned text on successful transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
Vedal987 committed Jun 11, 2024
1 parent 431025c commit 5bfa449
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ebs/src/modules/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ app.post("/public/transaction", async (req, res) => {
connection.redeem(redeem, cart, userInfo, transaction.token);
}

res.sendStatus(200);
res.sendStatus(200).send("Your transaction was successful! Your redeem will appear on stream soon.");
});

app.post("/public/transaction/cancel", async (req, res) => {
Expand Down
2 changes: 1 addition & 1 deletion frontend/www/src/modules/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Twitch.ext.bits.onTransactionComplete(async (transaction) => {

if (result.ok) {
// Transaction token can no longer be used to log
showSuccessModal("Purchase completed", `Your transaction was successful! Your redeem will appear on stream soon.\nTransaction ID: ${transactionToken}`);
showSuccessModal("Purchase completed", `${await result.text()}\nTransaction ID: ${transactionToken}`);
} else {
logToDiscord({
transactionToken: transactionToken,
Expand Down

0 comments on commit 5bfa449

Please sign in to comment.