Skip to content

Commit

Permalink
fix: fix wrong hook return type omit
Browse files Browse the repository at this point in the history
  • Loading branch information
wjaykim authored and mikehardy committed Apr 26, 2022
1 parent dd36436 commit 8bbc0ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hooks/useAppOpenAd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import { useFullScreenAd } from './useFullScreenAd';
export function useAppOpenAd(
adUnitId: string | null,
requestOptions: RequestOptions = {},
): Omit<AdHookReturns, 'adReward'> {
): Omit<AdHookReturns, 'reward' | 'isEarnedReward'> {
const [appOpenAd, setAppOpenAd] = useState<AppOpenAd | null>(null);

useDeepCompareEffect(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useInterstitialAd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import { useFullScreenAd } from './useFullScreenAd';
export function useInterstitialAd(
adUnitId: string | null,
requestOptions: RequestOptions = {},
): Omit<AdHookReturns, 'adReward'> {
): Omit<AdHookReturns, 'reward' | 'isEarnedReward'> {
const [interstitialAd, setInterstitialAd] = useState<InterstitialAd | null>(null);

useDeepCompareEffect(() => {
Expand Down

0 comments on commit 8bbc0ad

Please sign in to comment.