Skip to content

Commit f3a4c61

Browse files
authored
fix(console): hide name label if agent is empty (#7419)
1 parent 882c6d4 commit f3a4c61

File tree

1 file changed

+4
-0
lines changed
  • packages/console/src/components/MfaFactorName

1 file changed

+4
-0
lines changed

packages/console/src/components/MfaFactorName/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ function MfaFactorName({ type, agent, name }: Props) {
2929
return name;
3030
}
3131

32+
if (!agent) {
33+
return null;
34+
}
35+
3236
const { browser, os } = parseUa(agent);
3337

3438
return `${browser.name} on ${os.name}`;

0 commit comments

Comments
 (0)