forked from administration/panel
fix: render account page without `authifier` perm
parent
3104c57db7
commit
0cbe4933f8
|
@ -8,7 +8,7 @@ import { fetchAuthifierEmailClassification } from "@/lib/db";
|
||||||
|
|
||||||
export async function EmailClassificationCard({ email }: { email: string }) {
|
export async function EmailClassificationCard({ email }: { email: string }) {
|
||||||
const provider = email.split("@").pop() ?? "";
|
const provider = email.split("@").pop() ?? "";
|
||||||
const providerInfo = await fetchAuthifierEmailClassification(provider);
|
const providerInfo = await fetchAuthifierEmailClassification(provider).catch(() => null);
|
||||||
if (!providerInfo) return null;
|
if (!providerInfo) return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue