📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
verify error fix
Blue Mouseb3e0cc7aac35
diff --git a/app/pages/Auth/VerifyEmail/index.tsx b/app/pages/Auth/VerifyEmail/index.tsxindex 036847279..073051bc9 100644--- a/app/pages/Auth/VerifyEmail/index.tsx+++ b/app/pages/Auth/VerifyEmail/index.tsx@@ -4,6 +4,7 @@ import { useParams, Link } from '@remix-run/react'import { useTranslation } from 'react-i18next'import { CheckCircleIcon, XCircleIcon } from '@heroicons/react/24/solid'import _isString from 'lodash/isString'+import _isArray from 'lodash/isArray'import sagaActions from 'redux/sagas/actions'import Loader from 'ui/Loader'@@ -42,8 +43,15 @@ const VerifyEmail = (): JSX.Element => {() => {setLoading(false)},- (verifyError: string | { message: string }) => {- setError(_isString(verifyError) ? verifyError : verifyError.message)+ (verifyError: any) => {+ if (_isArray(verifyError)) {+ setError(verifyError[0])+ } else if (_isString(verifyError)) {+ setError(verifyError)+ } else {+ setError(verifyError?.message || t('auth.verification.invalid'))+ }+setLoading(false)},),