Skip to content

Commit 8dde95a

Browse files
committed
fix ts
1 parent bde71ca commit 8dde95a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

site/src/contexts/usePushNotifications.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const usePushNotifications = (): PushNotifications => {
4949
const registration = await navigator.serviceWorker.ready;
5050

5151
// Note: You'd typically get this key from your server
52-
const vapidPublicKey = buildInfoQuery.data?.push_notifications_public_key;
52+
const vapidPublicKey = buildInfoQuery.data?.webpush_public_key;
5353

5454
const subscription = await registration.pushManager.subscribe({
5555
userVisibleOnly: true,

site/src/testHelpers/entities.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ export const MockBuildInfo: TypesGen.BuildInfoResponse = {
227227
workspace_proxy: false,
228228
upgrade_message: "My custom upgrade message",
229229
deployment_id: "510d407f-e521-4180-b559-eab4a6d802b8",
230-
push_notifications_public_key: "fake-public-key",
230+
webpush_public_key: "fake-public-key",
231231
telemetry: true,
232232
};
233233

0 commit comments

Comments
 (0)