Skip to content

Commit 5960d91

Browse files
committed
fix: resolve duplicate import and diagnostic bound after PR merges
1 parent b7bb3f0 commit 5960d91

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

apps/web/src/hooks/useRoundSession.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// Copyright (c) 2026 Sub Rosa contributors
2-
import { shortAddr } from "../lib/format";
32
import { Buffer } from "buffer";
43
import { useEffect, useState } from "react";
54
import {

services/appraisal-api/src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const SENSITIVE_FIELD = /("?(?:secret|token|password|authorization|privateKey|pr
3333

3434
/** Bound provider diagnostics and redact common credential fields before display/logging. */
3535
export function sanitizePaymentErrorDiagnostic(body: string): string {
36-
return body.slice(0, MAX_PAYMENT_ERROR_DIAGNOSTIC_LENGTH).replace(SENSITIVE_FIELD, '$1[REDACTED]');
36+
return body.slice(0, MAX_PAYMENT_ERROR_DIAGNOSTIC_LENGTH).replace(SENSITIVE_FIELD, '$1[REDACTED]').slice(0, MAX_PAYMENT_ERROR_DIAGNOSTIC_LENGTH);
3737
}
3838

3939
export class AppraisalResponseParseError extends Error {

0 commit comments

Comments
 (0)