diff --git a/app.json b/app.json
index a2e5611..84a54ea 100644
--- a/app.json
+++ b/app.json
@@ -2,7 +2,7 @@
"expo": {
"name": "Statsfy",
"slug": "statsfy",
- "version": "3.1.0",
+ "version": "3.1.1",
"orientation": "portrait",
"icon": "./assets/icon.png",
"scheme": "com.yabcompany.statsfy3",
@@ -23,7 +23,7 @@
},
"android": {
"package": "com.yabcompany.statsfy",
- "versionCode": 16,
+ "versionCode": 17,
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
diff --git a/src/screens/Login.tsx b/src/screens/Login.tsx
index 7ab54b2..73fdbc1 100644
--- a/src/screens/Login.tsx
+++ b/src/screens/Login.tsx
@@ -23,6 +23,7 @@ import {
SPOTIFY_TOKEN_ENDPOINT,
AD_UNIT_ID,
} from "../contants";
+import { Loading } from "../components/Loading";
WebBrowser.maybeCompleteAuthSession();
@@ -50,7 +51,7 @@ export const Login = () => {
discovery
);
- const { load, show } = useInterstitialAd(adUnitId, {
+ const { isLoaded, load, show } = useInterstitialAd(adUnitId, {
requestNonPersonalizedAdsOnly: true,
});
@@ -66,6 +67,8 @@ export const Login = () => {
load();
}, [load]);
+ if (!isLoaded) return ;
+
return (