Skip to content

Commit c2eecf7

Browse files
committed
UuidV4 Fixes.
1 parent f77ee08 commit c2eecf7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sdk/highlight-run/src/__tests__/randomUuidV4.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ it('formats conformant UUID', () => {
1414
expect(idC).toHaveLength(36)
1515
const versionA = idA[14]
1616
const versionB = idB[14]
17-
const versionC = idB[14]
17+
const versionC = idC[14]
1818

1919
expect(versionA).toEqual('4')
2020
expect(versionB).toEqual('4')

sdk/highlight-run/src/client/utils/randomUuidV4.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export function fallbackUuidV4(): string {
9797

9898
export default function randomUuidV4(): string {
9999
if (
100-
typeof crypto !== undefined &&
100+
typeof crypto !== "undefined" &&
101101
typeof crypto.randomUUID === 'function'
102102
) {
103103
return crypto.randomUUID()

0 commit comments

Comments
 (0)