Skip to content

Commit

Permalink
Try a custom variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-gordon committed Dec 16, 2023
1 parent d0b3d37 commit 2aebe7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/lib/sendLoopsEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const sentEvents = new Set<string>();

export function sendLoopsEvent(body: { email: string; eventName: string }) {
if (process.env.NODE_ENV !== "production") {
if (!process.env?.REACT_APP_SEND_LOOPS_EVENTS) {
console.log("Not sending loops event in dev mode");
return;
}
Expand Down

0 comments on commit 2aebe7f

Please sign in to comment.