@@ -348,7 +348,7 @@ async function loadConfigurationFileName(
348348 const currentToml = existingTomls [ remoteApp . apiKey ]
349349 if ( currentToml ) return currentToml
350350
351- return selectConfigName ( localAppInfo . appDirectory || options . directory , remoteApp . title )
351+ return selectConfigName ( localAppInfo . appDirectory ?? options . directory , remoteApp . title )
352352}
353353
354354/**
@@ -484,8 +484,8 @@ function buildAppConfigurationFromRemoteAppProperties(
484484
485485function addRemoteAppHomeConfig ( remoteApp : OrganizationApp ) {
486486 const homeConfig = {
487- application_url : remoteApp . applicationUrl ?. replace ( / \/ $ / , '' ) || '' ,
488- embedded : remoteApp . embedded === undefined ? true : remoteApp . embedded ,
487+ application_url : remoteApp . applicationUrl ?. replace ( / \/ $ / , '' ) ?? '' ,
488+ embedded : remoteApp . embedded ?? true ,
489489 }
490490 return remoteApp . preferencesUrl
491491 ? {
@@ -511,8 +511,8 @@ function addRemoteAppProxyConfig(remoteApp: OrganizationApp) {
511511
512512function addRemoteAppWebhooksConfig ( remoteApp : OrganizationApp ) {
513513 const hasAnyPrivacyWebhook =
514- remoteApp . gdprWebhooks ?. customerDataRequestUrl ||
515- remoteApp . gdprWebhooks ?. customerDeletionUrl ||
514+ remoteApp . gdprWebhooks ?. customerDataRequestUrl ??
515+ remoteApp . gdprWebhooks ?. customerDeletionUrl ??
516516 remoteApp . gdprWebhooks ?. shopDeletionUrl
517517
518518 const privacyComplianceContent = {
@@ -525,7 +525,7 @@ function addRemoteAppWebhooksConfig(remoteApp: OrganizationApp) {
525525
526526 return {
527527 webhooks : {
528- api_version : remoteApp . webhookApiVersion || '2023-07' ,
528+ api_version : remoteApp . webhookApiVersion ?? '2023-07' ,
529529 ...( hasAnyPrivacyWebhook ? privacyComplianceContent : { } ) ,
530530 } ,
531531 }
@@ -561,7 +561,7 @@ function addRemoteAppAccessConfig(locallyProvidedScopes: string, remoteApp: Orga
561561function addPosConfig ( remoteApp : OrganizationApp ) {
562562 return {
563563 pos : {
564- embedded : remoteApp . posEmbedded || false ,
564+ embedded : remoteApp . posEmbedded ?? false ,
565565 } ,
566566 }
567567}
0 commit comments