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