Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed: error in console due to empty shopify configuration on logout(#2tky1f3) #238

Merged
merged 2 commits into from
Sep 9, 2022

Conversation

disha1202
Copy link
Contributor

Related Issues

Closes #

Short Description and Why It's Useful

Screenshots of Visual Changes before/after (If There Are Any)

IMPORTANT NOTICE - Remember to add changelog entry

Contribution and Currently Important Rules Acceptance

@@ -28,7 +28,7 @@
<ion-label class="ion-text-wrap">
<p class="overline">{{ instanceUrl }}</p>
{{ eComStore.storeName }}
<p>{{ currentShopifyConfig.name ? currentShopifyConfig.name : currentShopifyConfig.shopifyConfigName }}</p>
<p>{{ currentShopifyConfig?.name ? currentShopifyConfig.name : currentShopifyConfig?.shopifyConfigName }}</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WDYT?

Suggested change
<p>{{ currentShopifyConfig?.name ? currentShopifyConfig.name : currentShopifyConfig?.shopifyConfigName }}</p>
<p v-if="currentShopifyConfig">{{ currentShopifyConfig.name ? currentShopifyConfig.name : currentShopifyConfig.shopifyConfigName }}</p>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set empty object by default to resolve this issue

@@ -28,7 +28,7 @@
<ion-label class="ion-text-wrap">
<p class="overline">{{ instanceUrl }}</p>
{{ eComStore.storeName }}
<p>{{ currentShopifyConfig.name ? currentShopifyConfig.name : currentShopifyConfig.shopifyConfigName }}</p>
<p>{{ currentShopifyConfig?.name ? currentShopifyConfig.name : currentShopifyConfig?.shopifyConfigName }}</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should set it as empty object by default and this check will not be required then

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set empty object by default to resolve this issue

@adityasharma7 adityasharma7 changed the title Fixed: error in console due to empty shopify configuration on lgout(#2tky1f3) Fixed: error in console due to empty shopify configuration on logout(#2tky1f3) Sep 9, 2022
@adityasharma7 adityasharma7 merged commit 113e467 into hotwax:main Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants