Skip to content

Commit

Permalink
Update accounts.tsx
Browse files Browse the repository at this point in the history
I think this condition is correct :) There is discrepancy if "emailVerified" is NULL in database. Even if on User settings -> account page the email stays as verified, on Admin settings -> Users table the icon was not shown.
If user confirm its e-mail address, the "emailVerified" column in database is updated, so "ok" image is displayed correctly in users table and in Account settings page as well.
  • Loading branch information
tinola authored Dec 15, 2024
1 parent e43163d commit 827db23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/adminPage/users/table/accounts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const Accounts = () => {
return (
<div className="flex items-center space-x-1">
<div>{email}</div>
{!mailIsVerified && (
{mailIsVerified && (
<span title="Email verification completed">
<Verified />
</span>
Expand Down

0 comments on commit 827db23

Please sign in to comment.