From 61a1ef59bdefa6a8990aa4885f8ae8b43cd52b2a Mon Sep 17 00:00:00 2001 From: Hailey Date: Fri, 25 Jul 2025 09:13:45 -0700 Subject: [PATCH] fix type error --- src/lib/hooks/useOTAUpdates.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/hooks/useOTAUpdates.ts b/src/lib/hooks/useOTAUpdates.ts index d235694ad8..864d5d6970 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, }