Skip to content

Commit f964e12

Browse files
committed
fix: update appName and set it to unknown if not available
1 parent a2e1091 commit f964e12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/helpers/connectionOptions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ export async function setAppNameParamIfMissing({
2929
return connectionStringUrl.toString();
3030
}
3131

32+
const appName = components.appName || "unknown";
3233
const deviceId = components.deviceId ? await components.deviceId : "unknown";
33-
3434
const clientName = components.clientName || "unknown";
3535

3636
// Build the extended appName format: appName--deviceId--clientName
37-
const extendedAppName = `${components.appName}--${deviceId}--${clientName}`;
37+
const extendedAppName = `${appName}--${deviceId}--${clientName}`;
3838

3939
searchParams.set("appName", extendedAppName);
4040

0 commit comments

Comments
 (0)