Skip to content

Commit

Permalink
fix(sanity): issue where the scheduled for banner was appearing in re…
Browse files Browse the repository at this point in the history
…leases that shouldn't
  • Loading branch information
RitaDias committed Nov 6, 2024
1 parent 90ca666 commit 10dea69
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export function AddToReleaseBanner({
const {createVersion} = useVersionOperations()

const isScheduled =
currentRelease?.state === 'scheduled' || currentRelease?.state === 'scheduling'
(currentRelease?.state === 'scheduled' || currentRelease?.state === 'scheduling') &&
currentRelease.metadata.releaseType === 'scheduled'

const handleAddToRelease = useCallback(async () => {
if (currentRelease._id) {
Expand Down

0 comments on commit 10dea69

Please sign in to comment.