refactor(PendingOrders): address PR comments
gitea/hedera-web/pipeline/pr-beta This commit looks good
Details
gitea/hedera-web/pipeline/pr-beta This commit looks good
Details
This commit is contained in:
parent
859ffbd1fd
commit
512b0b5e9c
|
@ -32,7 +32,7 @@ const getOrders = async (clientFk) => {
|
||||||
const filter = {
|
const filter = {
|
||||||
where: {
|
where: {
|
||||||
clientFk,
|
clientFk,
|
||||||
isConfirmed: 0,
|
isConfirmed: false,
|
||||||
source_app: 'WEB',
|
source_app: 'WEB',
|
||||||
},
|
},
|
||||||
include: [
|
include: [
|
||||||
|
|
|
@ -7,12 +7,11 @@ const userStore = useUserStore();
|
||||||
export const onUserId = (cb) => watch(
|
export const onUserId = (cb) => watch(
|
||||||
() => userStore?.user?.id,
|
() => userStore?.user?.id,
|
||||||
async userId => {
|
async userId => {
|
||||||
if (userId) {
|
if (!userId) return;
|
||||||
try {
|
try {
|
||||||
await cb(userId);
|
await cb(userId);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ immediate: true }
|
{ immediate: true }
|
||||||
|
|
Loading…
Reference in New Issue