about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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,
   }