Skip to content

Commit e503739

Browse files
authored
chore: suppress google one tap error in local dev env (#1210)
1 parent f043ddf commit e503739

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/theme/Layout/hooks.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ export function useGoogleOneTapConfig(): {
8080
const loadConfig = async () => {
8181
const rawConfig = customFields?.googleOneTapConfig;
8282
if (typeof rawConfig !== 'string') {
83-
throw new TypeError('Google One Tap config is not a string');
83+
debugLogger.error('Google One Tap config is not a string');
84+
return;
8485
}
8586
const parsedConfig = googleOneTapConfigSchema.safeParse(
8687
// eslint-disable-next-line no-restricted-syntax

0 commit comments

Comments
 (0)