Skip to content

Commit

Permalink
fixing add bug
Browse files Browse the repository at this point in the history
  • Loading branch information
belmirofss committed Sep 5, 2023
1 parent 26def86 commit b859651
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -23,7 +23,7 @@
},
"android": {
"package": "com.yabcompany.statsfy",
"versionCode": 16,
"versionCode": 17,
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
Expand Down
5 changes: 4 additions & 1 deletion src/screens/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
SPOTIFY_TOKEN_ENDPOINT,
AD_UNIT_ID,
} from "../contants";
import { Loading } from "../components/Loading";

WebBrowser.maybeCompleteAuthSession();

Expand Down Expand Up @@ -50,7 +51,7 @@ export const Login = () => {
discovery
);

const { load, show } = useInterstitialAd(adUnitId, {
const { isLoaded, load, show } = useInterstitialAd(adUnitId, {
requestNonPersonalizedAdsOnly: true,
});

Expand All @@ -66,6 +67,8 @@ export const Login = () => {
load();
}, [load]);

if (!isLoaded) return <Loading />;

return (
<ScreenContainer style={{ justifyContent: "flex-end", gap: Theme.space.s }}>
<Logo />
Expand Down

0 comments on commit b859651

Please sign in to comment.