reintroduce check that provider is not null

Signed-off-by: Colton Padden <colton.padden@fastmail.com>
This commit is contained in:
Colton Padden
2021-12-15 21:50:53 -05:00
parent df8ee36288
commit ec3c47bee6
@@ -87,6 +87,9 @@ export function AppThemeProvider({ children }: PropsWithChildren<{}>) {
if (!appTheme) {
throw new Error('App has no themes');
}
if (!appTheme.Provider) {
throw new Error('App has no theme provider');
}
return <appTheme.Provider children={children} />;
}