From 4d210e33cfac8c17fb2b066438df52a4589ab98a Mon Sep 17 00:00:00 2001 From: hailey Date: Fri, 25 Jul 2025 09:34:04 -0700 Subject: fix type error (#8722) --- src/lib/hooks/useOTAUpdates.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lib/hooks/useOTAUpdates.ts') 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, } -- cgit 1.4.1