diff --git a/.env.example b/.env.example index dcb8041..ab743f4 100644 --- a/.env.example +++ b/.env.example @@ -3,4 +3,8 @@ NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN='' NEXT_PUBLIC_FIREBASE_PROJECT_ID='' NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET='' NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID='' -NEXT_PUBLIC_FIREBASE_APP_ID='' \ No newline at end of file +NEXT_PUBLIC_FIREBASE_APP_ID='' + +# Suppress baseline-browser-mapping and browserslist warnings about old data +BROWSERSLIST_IGNORE_OLD_DATA=true +BASELINE_BROWSER_MAPPING_IGNORE_OLD_DATA=true \ No newline at end of file diff --git a/components/modal/auth/Login.tsx b/components/modal/auth/Login.tsx index bfcc5d5..5ca37b9 100644 --- a/components/modal/auth/Login.tsx +++ b/components/modal/auth/Login.tsx @@ -92,7 +92,7 @@ const Login: React.FC = () => { fontWeight="800" mt={2} > - {FIREBASE_ERRORS[error?.code as keyof typeof FIREBASE_ERRORS]} + {error && (FIREBASE_ERRORS[error.code as keyof typeof FIREBASE_ERRORS] || error.message)}