Skip to content

Commit

Permalink
4242
Browse files Browse the repository at this point in the history
  • Loading branch information
0xjaqbek committed Jul 16, 2024
1 parent ed7d7c1 commit 6a91b08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/IndexPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ const IndexPage: FC = () => {

useEffect(() => {
if (onTelegram && userId) {
alert(`User ID: ${userId}`);
console.log(`User ID: ${userId}`);
// You can fetch and print the user's name here if needed
} else {
alert('Error user data unavailable!');
console.log('Error: user data unavailable!');
}
}, [onTelegram, userId]);

Expand Down Expand Up @@ -293,7 +293,7 @@ const IndexPage: FC = () => {
/>
)}

{calculateElapsedTime()}
{calculateElapsedTime() || (userId ? userId : "...")}
</div>
);
};
Expand Down

0 comments on commit 6a91b08

Please sign in to comment.