diff options
author | hailey <me@haileyok.com> | 2025-07-25 09:34:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-25 09:34:04 -0700 |
commit | 4d210e33cfac8c17fb2b066438df52a4589ab98a (patch) | |
tree | a6b09bf83162d701d610395d519940932b75d135 /src/lib/hooks | |
parent | 15abdc67cf77444f20c760537e0e5ca4f9aca5d5 (diff) | |
download | voidsky-4d210e33cfac8c17fb2b066438df52a4589ab98a.tar.zst |
fix type error (#8722)
Diffstat (limited to 'src/lib/hooks')
-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, } |