Skip to content

Commit

Permalink
Merge pull request #426 from CirclesUBI/feature/app-484-opening-own-s…
Browse files Browse the repository at this point in the history
…hop-errors-when-in-shop-context

add type for shopOwner
  • Loading branch information
dacianavram authored Sep 5, 2023
2 parents 55661fd + 9cb0da4 commit 48056d4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ let noData: boolean;
let detailActions: UserActionItem[];
let availableActions = [];
let isMyShop: boolean;
let shopOwner;
let shopOwner: Profile[];
onMount(async () => {
detailActions = [];
let $me: Profile | null = null;
Expand All @@ -73,7 +73,8 @@ onMount(async () => {
await marketStore.loadSingleItem(circlesAddress);
}
const shopOwnerData = await contacts.findBySafeAddress(business.circlesAddress);
let shopOwner = shopOwnerData.contactAddress_Profile.members;
shopOwner = shopOwnerData.contactAddress_Profile.members;
const currentDateIndex = new Date().getDay();
isMyShop = $me.circlesAddress === business.circlesAddress || $me.circlesAddress === shopOwner[0].circlesAddress;
Expand Down

0 comments on commit 48056d4

Please sign in to comment.