Skip to content

Commit

Permalink
Trying new LA logic
Browse files Browse the repository at this point in the history
  • Loading branch information
awisniew207 committed Sep 6, 2024
1 parent d588802 commit 36565ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/litAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const _litActionCode = async () => {

const isValid = calculatedHashHex === hash;
if (!isValid) {
console.log("Invalid Telegram user data", calculatedHashHex, hash);
return Lit.Actions.setResponse({
response: "false",
reason: "Invalid Telegram user data",
Expand Down Expand Up @@ -108,6 +109,7 @@ const _litActionCode = async () => {
Lit.Actions.setResponse({ response: "true" });
return;
} catch (error) {
console.log("error:", error);
return Lit.Actions.setResponse({
response: "false",
reason: `Error: ${error.message}`,
Expand Down

0 comments on commit 36565ee

Please sign in to comment.