Skip to content

Commit

Permalink
unlock eventの位置を変えてみる
Browse files Browse the repository at this point in the history
  • Loading branch information
nasubi-dev committed Sep 29, 2024
1 parent 789ada9 commit 68dfa63
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/pages/unlocked/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ export default function Page(): ReactElement {
setIsUILocked(true);

try {
if (isUnlocked) {
ReactGA.event("unlocked");
// eslint-disable-next-line no-console
console.log("unlocked");
}
await update(
isUnlocked
? [
Expand All @@ -66,6 +61,11 @@ export default function Page(): ReactElement {
);
await mutate();
} finally {
if (isUnlocked) {
ReactGA.event("unlocked");
// eslint-disable-next-line no-console
console.log("unlocked");
}
setIsUILocked(false);
}
};
Expand Down

0 comments on commit 68dfa63

Please sign in to comment.