Skip to content

Commit

Permalink
fix(TwaLoader): fuf
Browse files Browse the repository at this point in the history
  • Loading branch information
Razzwan committed Nov 13, 2023
1 parent a5e033d commit 68181b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@altiore/twa",
"version": "2.4.20",
"version": "2.4.21",
"description": "React components for Telegram WebApp",
"source": "./src/index.ts",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/TwaLoader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const TwaLoader = ({
return loading;
}

if (versionAtLeast && !isCorrectVersion) {
if (isLoaded && versionAtLeast && !isCorrectVersion) {
return oldTWApp;
}

Expand Down

0 comments on commit 68181b3

Please sign in to comment.