Skip to content

Commit

Permalink
update metadata to use sitemetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
NidhiKJha committed Jan 23, 2025
1 parent 29c534c commit 60d93e4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import {
import SnapPermissionsList from '../../../../components/app/snaps/snap-permissions-list';
import { useScrollRequired } from '../../../../hooks/useScrollRequired';
import InstallError from '../../../../components/app/snaps/install-error/install-error';
import { useOriginMetadata } from '../../../../hooks/useOriginMetadata';
import { getSnapMetadata, getSnapsMetadata } from '../../../../selectors';
import { getSnapName } from '../../../../helpers/utils/util';
import PermissionConnectHeader from '../../../../components/app/permission-connect-header';
Expand All @@ -43,7 +44,7 @@ export default function SnapInstall({
targetSubjectMetadata,
}) {
const t = useI18nContext();

const siteMetadata = useOriginMetadata(request?.metadata?.dappOrigin) || {};
const [isShowingWarning, setIsShowingWarning] = useState(false);
const snapsMetadata = useSelector(getSnapsMetadata);
const [showAllPermissions, setShowAllPermissions] = useState(false);
Expand Down Expand Up @@ -114,7 +115,7 @@ export default function SnapInstall({
backgroundColor={BackgroundColor.backgroundAlternative}
>
{(isLoading || hasError) && !isOriginSnap ? (
<PermissionConnectHeader subjectMetadata={targetSubjectMetadata} />
<PermissionConnectHeader subjectMetadata={siteMetadata} />
) : (
<SnapAuthorshipHeader
snapId={
Expand Down

0 comments on commit 60d93e4

Please sign in to comment.