diff options
Diffstat (limited to 'src/lib/hooks/useOTAUpdates.ts')
-rw-r--r-- | src/lib/hooks/useOTAUpdates.ts | 3 |
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, } |