Skip to content

Commit 0fb8ab6

Browse files
committed
minor pr fix
1 parent 8095f38 commit 0fb8ab6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/react/src/reactrouterv6.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ export function wrapUseRoutes(origUseRoutes: UseRoutes): UseRoutes {
226226

227227
// A value with stable identity to either pick `locationArg` if available or `location` if not
228228
const stableLocationParam =
229-
typeof locationArg === 'string' || locationArg && locationArg.pathname !== undefined
229+
typeof locationArg === 'string' || (locationArg && locationArg.pathname)
230230
? (locationArg as { pathname: string })
231231
: location;
232232

packages/replay/src/coreHandlers/handleGlobalEvent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ export function handleGlobalEventListener(replay: ReplayContainer): (event: Even
4444
replay.getContext().errorIds.add(event.event_id as string);
4545
}
4646

47-
const exc = getEventExceptionValues(event);
4847
if (__DEBUG_BUILD__ && replay.getOptions()._experiments.traceInternals) {
48+
const exc = getEventExceptionValues(event);
4949
addInternalBreadcrumb({
5050
message: `Tagging event (${event.event_id}) - ${event.message} - ${exc.type}: ${exc.value}`,
5151
});

packages/utils/src/requestdata.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,8 @@ export function addRequestDataToEvent(
300300

301301
if (include.request) {
302302
const extractedRequestData = Array.isArray(include.request)
303-
? extractRequestData(req, { include: include.request, deps: options ? options.deps : undefined })
304-
: extractRequestData(req, { deps: options ? options.deps : undefined });
303+
? extractRequestData(req, { include: include.request, deps: options && options.deps })
304+
: extractRequestData(req, { deps: options && options.deps });
305305

306306
event.request = {
307307
...event.request,

0 commit comments

Comments
 (0)