Skip to content

Commit

Permalink
Merge pull request #46170 from gijoe0295/gijoe/45848
Browse files Browse the repository at this point in the history
Fix: Avatar mismatch in existing connection page
  • Loading branch information
carlosmiceli authored Jul 25, 2024
2 parents 968bae5 + 3c114c3 commit 6cf5472
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function ExistingConnectionsPage({route}: ExistingConnectionsPageProps) {
return {
title: policy.name,
key: policy.id,
avatarID: policy.id,
icon: policy.avatarURL ? policy.avatarURL : ReportUtils.getDefaultWorkspaceAvatar(policy.name),
iconType: policy.avatarURL ? CONST.ICON_TYPE_AVATAR : CONST.ICON_TYPE_WORKSPACE,
description: date ? translate('workspace.common.lastSyncDate', CONST.POLICY.CONNECTIONS.NAME_USER_FRIENDLY.intacct, date) : translate('workspace.accounting.intacct'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function NetSuiteExistingConnectionsPage({route}: ExistingConnectionsPageProps)
return {
title: policy.name,
key: policy.id,
avatarID: policy.id,
icon: policy.avatarURL ? policy.avatarURL : ReportUtils.getDefaultWorkspaceAvatar(policy.name),
iconType: policy.avatarURL ? CONST.ICON_TYPE_AVATAR : CONST.ICON_TYPE_WORKSPACE,
description: date ? translate('workspace.common.lastSyncDate', CONST.POLICY.CONNECTIONS.NAME_USER_FRIENDLY.netsuite, date) : translate('workspace.accounting.netsuite'),
Expand Down

0 comments on commit 6cf5472

Please sign in to comment.