Skip to content

Commit

Permalink
Merge pull request #150 from ymaheshwari1/#149
Browse files Browse the repository at this point in the history
Fixed: case to display productStoreId in case the storeName is not available(#149)
  • Loading branch information
ymaheshwari1 authored Apr 3, 2024
2 parents ee8f630 + 1df4bbc commit c13ca23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/views/BrokeringRuns.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<ion-list-header>{{ translate("Product Store") }}</ion-list-header>
<ion-radio-group :value="currentEComStore.productStoreId" @ionChange="setEComStore($event)">
<ion-item v-for="store in (userProfile ? userProfile.stores : [])" :key="store.productStoreId" lines="none">
<ion-radio :value="store.productStoreId">{{ store.storeName }}</ion-radio>
<ion-radio :value="store.productStoreId">{{ store.storeName || store.productStoreId }}</ion-radio>
</ion-item>
</ion-radio-group>
</ion-list>
Expand Down
2 changes: 1 addition & 1 deletion src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
</ion-card-content>
<ion-item lines="none">
<ion-select :label="translate('Select store')" interface="popover" :value="currentEComStore.productStoreId" @ionChange="setEComStore($event)">
<ion-select-option v-for="store in (userProfile ? userProfile.stores : [])" :key="store.productStoreId" :value="store.productStoreId" >{{ store.storeName }}</ion-select-option>
<ion-select-option v-for="store in (userProfile ? userProfile.stores : [])" :key="store.productStoreId" :value="store.productStoreId" >{{ store.storeName || store.productStoreId }}</ion-select-option>
</ion-select>
</ion-item>
</ion-card>
Expand Down

0 comments on commit c13ca23

Please sign in to comment.