Skip to content

Commit

Permalink
Update ost.js
Browse files Browse the repository at this point in the history
  • Loading branch information
qiyundai committed Sep 17, 2024
1 parent f135564 commit 0366b5c
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions libs/blocks/ost/ost.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import ctaTextOption from './ctaTextOption.js';
import {
getConfig,
getLocale,
getMetadata,
loadScript,
loadStyle,
} from '../../utils/utils.js';
import { getConfig, getLocale, getMetadata, loadScript, loadStyle } from '../../utils/utils.js';

export const AOS_API_KEY = 'wcms-commerce-ims-user-prod';
export const CHECKOUT_CLIENT_ID = 'creative';
Expand Down Expand Up @@ -274,7 +268,9 @@ export default async function init(el) {
openOst();
},
onReady: () => {
if (!window.adobeIMS.isSignedInUser()) window.adobeIMS.signIn();
if (!window.adobeIMS.isSignedInUser()) {
window.adobeIMS.signIn();
}
},
};

Expand Down

0 comments on commit 0366b5c

Please sign in to comment.