Skip to content

Commit

Permalink
fix: global loadding
Browse files Browse the repository at this point in the history
  • Loading branch information
kris-liu-smile authored and CarlLiu2023 committed Apr 26, 2023
1 parent df8a9d1 commit b6fc12e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions apps/storefront/src/components/B3StoreContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ export function B3StoreContainer(props: B3StoreContainerProps) {

useLayoutEffect(() => {
const getStoreBasicInfo = async () => {
if (
window.location.pathname.includes('account.php') ||
window.location.hash
) {
showPageMask(dispatch, true)
}
// if (
// window.location.pathname.includes('account.php') ||
// window.location.hash
// ) {
// showPageMask(dispatch, true)
// }

showPageMask(dispatch, true)

try {
const { storeBasicInfo }: CustomFieldItems = await getBCStoreChannelId()
Expand Down

0 comments on commit b6fc12e

Please sign in to comment.