This commit is contained in:
parent
9be7ae81ae
commit
f30199e5f8
@ -116,7 +116,6 @@ export const KiosMap = () => {
|
|||||||
timeSensitive: false,
|
timeSensitive: false,
|
||||||
status: "requested",
|
status: "requested",
|
||||||
}
|
}
|
||||||
console.log(dispatch)
|
|
||||||
createDispatchMutation.mutate(dispatch)
|
createDispatchMutation.mutate(dispatch)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ const loginFetch = async (email: string, password: string) => {
|
|||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(err)
|
console.error(err)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -135,18 +135,14 @@ const getRetailersByAdminId = async (user: User | undefined) => {
|
|||||||
|
|
||||||
let myRetailers: Retailer[] = []
|
let myRetailers: Retailer[] = []
|
||||||
for (let retailer of retailers) {
|
for (let retailer of retailers) {
|
||||||
console.log(retailer)
|
|
||||||
if(retailer.admins) {
|
if(retailer.admins) {
|
||||||
for (let admin of retailer.admins) {
|
for (let admin of retailer.admins) {
|
||||||
console.log(admin)
|
|
||||||
if(admin.id === adminId) {
|
if(admin.id === adminId) {
|
||||||
myRetailers.push(retailer)
|
myRetailers.push(retailer)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("myRetailers:", myRetailers)
|
|
||||||
return myRetailers;
|
return myRetailers;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user