File tree Expand file tree Collapse file tree 5 files changed +6
-9
lines changed
Expand file tree Collapse file tree 5 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -363,11 +363,8 @@ export const CapCard = ({
363363 </ DropdownMenuItem >
364364 < DropdownMenuItem
365365 onClick = { ( ) => {
366- if ( ! isSubscribed ) {
367- setUpgradeModalOpen ( true ) ;
368- } else {
369- setIsPasswordDialogOpen ( true ) ;
370- }
366+ if ( ! isSubscribed ) setUpgradeModalOpen ( true ) ;
367+ else setIsPasswordDialogOpen ( true ) ;
371368 } }
372369 className = "flex gap-2 items-center rounded-lg"
373370 >
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ export default async function CapsPage({
173173 ${ videos . createdAt }
174174 )
175175 ` ,
176- hasPassword : sql `${ videos . password } IS NULL` . mapWith ( Boolean ) ,
176+ hasPassword : sql `${ videos . password } IS NOT NULL` . mapWith ( Boolean ) ,
177177 hasActiveUpload : sql `${ videoUploads . videoId } IS NOT NULL` . mapWith (
178178 Boolean ,
179179 ) ,
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ export default async function EmbedVideoPage(props: Props) {
147147 height : videos . height ,
148148 duration : videos . duration ,
149149 fps : videos . fps ,
150- hasPassword : sql `${ videos . password } IS NULL` . mapWith ( Boolean ) ,
150+ hasPassword : sql `${ videos . password } IS NOT NULL` . mapWith ( Boolean ) ,
151151 sharedOrganization : {
152152 organizationId : sharedVideos . organizationId ,
153153 } ,
Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ export default async function ShareVideoPage(props: Props) {
286286 height : videos . height ,
287287 duration : videos . duration ,
288288 fps : videos . fps ,
289- hasPassword : sql `${ videos . password } IS NULL` . mapWith ( Boolean ) ,
289+ hasPassword : sql `${ videos . password } IS NOT NULL` . mapWith ( Boolean ) ,
290290 sharedOrganization : {
291291 organizationId : sharedVideos . organizationId ,
292292 } ,
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ export async function getVideosByFolderId(folderId: string) {
176176 ${ videos . createdAt }
177177 )
178178 ` ,
179- hasPassword : sql `${ videos . password } IS NULL` . mapWith ( Boolean ) ,
179+ hasPassword : sql `${ videos . password } IS NOT NULL` . mapWith ( Boolean ) ,
180180 hasActiveUpload : sql `${ videoUploads . videoId } IS NOT NULL` . mapWith (
181181 Boolean ,
182182 ) ,
You can’t perform that action at this time.
0 commit comments