Skip to content

Commit 6c0929e

Browse files
authored
Forms: Fix duplicated email on dashboard (#45821)
* fix duplicated email * changelog
1 parent 22879c4 commit 6c0929e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: fixed
3+
4+
Forms: Fix duplicated email on dashboard

projects/packages/forms/src/dashboard/inbox/dataviews/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export default function InboxView() {
252252
);
253253
const defaultImage = item.author_name || item.author_email ? 'initials' : 'mp';
254254
const secondaryInfo =
255-
authorInfo === decodeEntities( item.author_name ) && item.author_email ? (
255+
item.author_email && authorInfo !== decodeEntities( item.author_email ) ? (
256256
<span className="jp-forms__inbox__author-field__email">
257257
{ decodeEntities( item.author_email ) }
258258
</span>

0 commit comments

Comments
 (0)