From b1bdfbb9f780a1a1305e02c4b9c338b98c7a4556 Mon Sep 17 00:00:00 2001 From: "Indoteknik ." Date: Fri, 15 Aug 2025 13:58:59 +0700 Subject: (andri) fix switch account --- src/pages/my/profile.jsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/pages') diff --git a/src/pages/my/profile.jsx b/src/pages/my/profile.jsx index 887489e0..b65a5e4d 100644 --- a/src/pages/my/profile.jsx +++ b/src/pages/my/profile.jsx @@ -18,6 +18,7 @@ import { useRouter } from 'next/router'; export default function Profile() { const auth = useAuth(); + console.log('auth', auth); const [isChecked, setIsChecked] = useState(false); const [ubahAkun, setUbahAkun] = useState(false); const [isAprove, setIsAprove] = useState(); @@ -111,9 +112,9 @@ export default function Profile() {

Ubah ke akun bisnis

))} - {isChecked && ( + {isChecked && ubahAkun !== 'pending' && (
- +
)} @@ -148,9 +149,9 @@ export default function Profile() {

Ubah ke akun bisnis

))} - {isChecked && ( + {isChecked && ubahAkun !== 'pending' && (
- +
)} -- cgit v1.2.3 From da8855a76c75d16cfa508164b8a73fd3be19ce12 Mon Sep 17 00:00:00 2001 From: Miqdad Date: Fri, 15 Aug 2025 16:50:09 +0700 Subject: Temp fix ready stock --- src/pages/api/shop/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pages') diff --git a/src/pages/api/shop/search.js b/src/pages/api/shop/search.js index e14b0ca2..cb418cf6 100644 --- a/src/pages/api/shop/search.js +++ b/src/pages/api/shop/search.js @@ -90,7 +90,7 @@ export default async function handler(req, res) { ]; if (orderBy === 'stock') { - filterQueries.push('stock_total_f:{0 TO *}'); + filterQueries.push('stock_total_f:{1 TO *}'); } if (fq && source != 'similar' && typeof fq != 'string') { -- cgit v1.2.3 From e03019b506260bcf1cb2b8d441b566fe568c6f6f Mon Sep 17 00:00:00 2001 From: Miqdad Date: Fri, 15 Aug 2025 16:57:40 +0700 Subject: ketinggalan --- src/pages/api/shop/search.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/pages') diff --git a/src/pages/api/shop/search.js b/src/pages/api/shop/search.js index cb418cf6..3d258a97 100644 --- a/src/pages/api/shop/search.js +++ b/src/pages/api/shop/search.js @@ -90,7 +90,8 @@ export default async function handler(req, res) { ]; if (orderBy === 'stock') { - filterQueries.push('stock_total_f:{1 TO *}'); + filterQueries.push('stock_total_f:{1 TO *}&sort=stock_total_f desc'); + // filterQueries.push(`stock_total_f DESC`) } if (fq && source != 'similar' && typeof fq != 'string') { -- cgit v1.2.3 From 1d072f532c5c24436ca05d9707eeeb910bb4c756 Mon Sep 17 00:00:00 2001 From: "Indoteknik ." Date: Sat, 16 Aug 2025 13:24:26 +0700 Subject: fix --- src/pages/my/profile.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pages') diff --git a/src/pages/my/profile.jsx b/src/pages/my/profile.jsx index 887489e0..5187cdca 100644 --- a/src/pages/my/profile.jsx +++ b/src/pages/my/profile.jsx @@ -73,7 +73,7 @@ export default function Profile() { <> setChangeConfirmation(false)} // Menutup popup + close={() => setChangeConfirmation(false)} //Menutup popup title="Ubah type akun" >
-- cgit v1.2.3