Commit fd7d9e2f authored by isstuev's avatar isstuev

ad provider fix 2

parent 1c9b8218
...@@ -21,6 +21,7 @@ const PAGE_PROPS = { ...@@ -21,6 +21,7 @@ const PAGE_PROPS = {
number: '', number: '',
q: '', q: '',
name: '', name: '',
adBannerProvider: '',
}; };
const TestApp = ({ children }: {children: React.ReactNode}) => { const TestApp = ({ children }: {children: React.ReactNode}) => {
......
...@@ -16,6 +16,7 @@ const AppContext = createContext<PageProps>({ ...@@ -16,6 +16,7 @@ const AppContext = createContext<PageProps>({
number: '', number: '',
q: '', q: '',
name: '', name: '',
adBannerProvider: '',
}); });
export function AppContextProvider({ children, pageProps }: Props) { export function AppContextProvider({ children, pageProps }: Props) {
......
...@@ -14,7 +14,7 @@ export type Props = { ...@@ -14,7 +14,7 @@ export type Props = {
number: string; number: string;
q: string; q: string;
name: string; name: string;
adBannerProvider: string | null; adBannerProvider: string;
} }
export const base: GetServerSideProps<Props> = async({ req, query }) => { export const base: GetServerSideProps<Props> = async({ req, query }) => {
...@@ -28,7 +28,7 @@ export const base: GetServerSideProps<Props> = async({ req, query }) => { ...@@ -28,7 +28,7 @@ export const base: GetServerSideProps<Props> = async({ req, query }) => {
return adBannerFeature.provider; return adBannerFeature.provider;
} }
} }
return null; return '';
})(); })();
return { return {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment