Skip to content

Commit

Permalink
Merge branch 'develop' into patch-eth-simple-keyring
Browse files Browse the repository at this point in the history
  • Loading branch information
adonesky1 authored Oct 5, 2022
2 parents 60ecba0 + ca6701c commit ffa0f7f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/scripts/lib/setupSentry.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ function rewriteReportUrls(report) {
}

function toMetamaskUrl(origUrl) {
const filePath = origUrl.split(window.location.origin)[1];
const filePath = origUrl.split(globalThis.location.origin)[1];
if (!filePath) {
return origUrl;
}
Expand Down
5 changes: 5 additions & 0 deletions ui/components/app/confirm-page-container/flask/index.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
.snap-insight {
word-wrap: break-word;

&__container__data__json {
word-wrap: break-word;
overflow-x: auto;
}
}
17 changes: 16 additions & 1 deletion ui/components/app/confirm-page-container/flask/snap-insight.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,22 @@ export const SnapInsight = ({ transaction, chainId, selectedSnap }) => {
>
{key}
</Typography>
<Typography variant={TYPOGRAPHY.H6}>{data[key]}</Typography>

{typeof data[key] === 'string' ? (
<Typography variant={TYPOGRAPHY.H6}>
{data[key]}
</Typography>
) : (
<Box
className="snap-insight__container__data__json"
backgroundColor={COLORS.BACKGROUND_ALTERNATIVE}
padding={3}
>
<Typography variant={TYPOGRAPHY.H7}>
<pre>{JSON.stringify(data[key], null, 2)}</pre>
</Typography>
</Box>
)}
</div>
))}
</Box>
Expand Down

0 comments on commit ffa0f7f

Please sign in to comment.