about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhailey <me@haileyok.com>2025-07-25 09:34:04 -0700
committerGitHub <noreply@github.com>2025-07-25 09:34:04 -0700
commit4d210e33cfac8c17fb2b066438df52a4589ab98a (patch)
treea6b09bf83162d701d610395d519940932b75d135
parent15abdc67cf77444f20c760537e0e5ca4f9aca5d5 (diff)
downloadvoidsky-4d210e33cfac8c17fb2b066438df52a4589ab98a.tar.zst
fix type error (#8722)
-rw-r--r--src/lib/hooks/useOTAUpdates.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/hooks/useOTAUpdates.ts b/src/lib/hooks/useOTAUpdates.ts
index d235694ad..864d5d697 100644
--- a/src/lib/hooks/useOTAUpdates.ts
+++ b/src/lib/hooks/useOTAUpdates.ts
@@ -69,6 +69,8 @@ export function useApplyPullRequestOTAUpdate() {
   const {currentlyRunning} = useUpdates()
   const [pending, setPending] = React.useState(false)
   const currentChannel = currentlyRunning?.channel
+  const isCurrentlyRunningPullRequestDeployment =
+    currentChannel?.startsWith('pull-request')
 
   const tryApplyUpdate = async (channel: string) => {
     setPending(true)
@@ -113,6 +115,7 @@ export function useApplyPullRequestOTAUpdate() {
   return {
     tryApplyUpdate,
     revertToEmbedded,
+    isCurrentlyRunningPullRequestDeployment,
     currentChannel,
     pending,
   }