Skip to content

Commit

Permalink
chore: merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Codetrauma committed Sep 12, 2024
2 parents 0b0457c + 7a8129f commit 63a85a6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
12 changes: 1 addition & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/components/RequestDetail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import {
} from '../../utils/storage';
import { MAX_RECV, MAX_SENT } from '../../utils/constants';


type Props = {
requestId: string;
};
Expand Down
4 changes: 3 additions & 1 deletion src/pages/Notarize/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ export function HideResponseStep(props: {
[responseText, props, isRedactMode]
);


const mergeRanges = (ranges: {start: number, end: number}[]): {start: number, end: number}[] => {
if (ranges.length === 0) return [];
const mergedRanges: {start: number, end: number}[] = [ranges[0]];
Expand Down Expand Up @@ -389,7 +390,8 @@ export function HideResponseStep(props: {

if (!req) return <></>;

let shieldedText = responseText.split('');

const shieldedText = responseText.split('');
redactedRanges.forEach(({ start, end }) => {
for (let i = start; i < end; i++) {
shieldedText[i] = '*';
Expand Down

0 comments on commit 63a85a6

Please sign in to comment.