Commit fd7d9e2f authored by isstuev's avatar isstuev

ad provider fix 2

parent 1c9b8218
......@@ -21,6 +21,7 @@ const PAGE_PROPS = {
number: '',
q: '',
name: '',
adBannerProvider: '',
};
const TestApp = ({ children }: {children: React.ReactNode}) => {
......
......@@ -16,6 +16,7 @@ const AppContext = createContext<PageProps>({
number: '',
q: '',
name: '',
adBannerProvider: '',
});
export function AppContextProvider({ children, pageProps }: Props) {
......
......@@ -14,7 +14,7 @@ export type Props = {
number: string;
q: string;
name: string;
adBannerProvider: string | null;
adBannerProvider: string;
}
export const base: GetServerSideProps<Props> = async({ req, query }) => {
......@@ -28,7 +28,7 @@ export const base: GetServerSideProps<Props> = async({ req, query }) => {
return adBannerFeature.provider;
}
}
return null;
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