Compare commits
1 Commits
fix-maps/2
...
fix-bug/3-
| Author | SHA1 | Date | |
|---|---|---|---|
| ad7dbaf162 |
@@ -21,7 +21,7 @@ export default {
|
|||||||
"Aplikasi membutuhkan akses lokasi untuk menampilkan peta.",
|
"Aplikasi membutuhkan akses lokasi untuk menampilkan peta.",
|
||||||
},
|
},
|
||||||
associatedDomains: ["applinks:cld-dkr-staging-hipmi.wibudev.com"],
|
associatedDomains: ["applinks:cld-dkr-staging-hipmi.wibudev.com"],
|
||||||
buildNumber: "1",
|
buildNumber: "2",
|
||||||
},
|
},
|
||||||
|
|
||||||
android: {
|
android: {
|
||||||
|
|||||||
@@ -1,21 +1,24 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||||
/* eslint-disable react-hooks/exhaustive-deps */
|
/* eslint-disable react-hooks/exhaustive-deps */
|
||||||
import { BasicWrapper, StackCustom, ViewWrapper } from "@/components";
|
import { BasicWrapper, StackCustom, ViewWrapper } from "@/components";
|
||||||
|
import CustomSkeleton from "@/components/_ShareComponent/SkeletonCustom";
|
||||||
import { MainColor } from "@/constants/color-palet";
|
import { MainColor } from "@/constants/color-palet";
|
||||||
import { useAuth } from "@/hooks/use-auth";
|
import { useAuth } from "@/hooks/use-auth";
|
||||||
import { useNotificationStore } from "@/hooks/use-notification-store";
|
import { useNotificationStore } from "@/hooks/use-notification-store";
|
||||||
import Home_BottomFeatureSection from "@/screens/Home/bottomFeatureSection";
|
import Home_BottomFeatureSection from "@/screens/Home/bottomFeatureSection";
|
||||||
import HeaderBell from "@/screens/Home/HeaderBell";
|
import HeaderBell from "@/screens/Home/HeaderBell";
|
||||||
|
import { stylesHome } from "@/screens/Home/homeViewStyle";
|
||||||
import Home_ImageSection from "@/screens/Home/imageSection";
|
import Home_ImageSection from "@/screens/Home/imageSection";
|
||||||
import TabSection from "@/screens/Home/tabSection";
|
import TabSection from "@/screens/Home/tabSection";
|
||||||
import { tabsHome } from "@/screens/Home/tabsList";
|
import { tabsHome } from "@/screens/Home/tabsList";
|
||||||
import Home_FeatureSection from "@/screens/Home/topFeatureSection";
|
import Home_FeatureSection from "@/screens/Home/topFeatureSection";
|
||||||
import { apiUser } from "@/service/api-client/api-user";
|
import { apiUser } from "@/service/api-client/api-user";
|
||||||
import { apiVersion } from "@/service/api-config";
|
import { apiVersion } from "@/service/api-config";
|
||||||
|
import { GStyles } from "@/styles/global-styles";
|
||||||
import { Ionicons } from "@expo/vector-icons";
|
import { Ionicons } from "@expo/vector-icons";
|
||||||
import { Redirect, router, Stack, useFocusEffect } from "expo-router";
|
import { Redirect, router, Stack, useFocusEffect } from "expo-router";
|
||||||
import { useCallback, useState } from "react";
|
import { useCallback, useState } from "react";
|
||||||
import { RefreshControl } from "react-native";
|
import { RefreshControl, TouchableOpacity, View } from "react-native";
|
||||||
|
|
||||||
export default function Application() {
|
export default function Application() {
|
||||||
const { token, user, userData } = useAuth();
|
const { token, user, userData } = useAuth();
|
||||||
@@ -27,24 +30,33 @@ export default function Application() {
|
|||||||
useCallback(() => {
|
useCallback(() => {
|
||||||
onLoadData();
|
onLoadData();
|
||||||
checkVersion();
|
checkVersion();
|
||||||
userData(token as string);
|
userData(token as string).catch((error) => {
|
||||||
|
console.log("[ERROR userData]", error?.message);
|
||||||
|
console.log("[ERROR userData Response]", error?.response?.data);
|
||||||
|
});
|
||||||
syncUnreadCount();
|
syncUnreadCount();
|
||||||
}, [user?.id, token]),
|
}, [user?.id, token]),
|
||||||
);
|
);
|
||||||
|
|
||||||
async function onLoadData() {
|
async function onLoadData() {
|
||||||
const response = await apiUser(user?.id as string);
|
try {
|
||||||
console.log(
|
const response = await apiUser(user?.id as string);
|
||||||
"[Profile ID]>>",
|
setData(response.data);
|
||||||
JSON.stringify(response?.data?.Profile?.id, null, 2),
|
} catch (error: any) {
|
||||||
);
|
console.log("[ERROR onLoadData]", error?.message);
|
||||||
|
console.log("[ERROR Response]", error?.response?.data);
|
||||||
setData(response.data);
|
// Set data tetap agar UI tidak stuck di loading
|
||||||
|
setData(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const checkVersion = async () => {
|
const checkVersion = async () => {
|
||||||
const response = await apiVersion();
|
try {
|
||||||
console.log("[Version] >>", JSON.stringify(response.data, null, 2));
|
const response = await apiVersion();
|
||||||
|
console.log("[Version] >>", JSON.stringify(response.data, null, 2));
|
||||||
|
} catch (error: any) {
|
||||||
|
console.log("[ERROR checkVersion]", error?.message);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const onRefresh = useCallback(() => {
|
const onRefresh = useCallback(() => {
|
||||||
@@ -54,11 +66,6 @@ export default function Application() {
|
|||||||
setRefreshing(false);
|
setRefreshing(false);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
// if (user && user?.termsOfServiceAccepted === false) {
|
|
||||||
// console.log("User is not accept term service");
|
|
||||||
// return <Redirect href={`/terms-agreement`} />;
|
|
||||||
// }
|
|
||||||
|
|
||||||
if (data && data?.active === false) {
|
if (data && data?.active === false) {
|
||||||
console.log("User is not active");
|
console.log("User is not active");
|
||||||
return (
|
return (
|
||||||
@@ -91,17 +98,25 @@ export default function Application() {
|
|||||||
<Stack.Screen
|
<Stack.Screen
|
||||||
options={{
|
options={{
|
||||||
title: `HIPMI`,
|
title: `HIPMI`,
|
||||||
headerLeft: () => (
|
headerLeft: () =>
|
||||||
<Ionicons
|
data ? (
|
||||||
name="search"
|
<Ionicons
|
||||||
size={20}
|
name="search"
|
||||||
color={MainColor.yellow}
|
size={20}
|
||||||
onPress={() => {
|
color={MainColor.yellow}
|
||||||
router.push("/user-search");
|
onPress={() => {
|
||||||
}}
|
router.push("/user-search");
|
||||||
/>
|
}}
|
||||||
),
|
/>
|
||||||
headerRight: () => <HeaderBell />,
|
) : (
|
||||||
|
<CustomSkeleton height={30} width={30} radius={100} />
|
||||||
|
),
|
||||||
|
headerRight: () =>
|
||||||
|
data ? (
|
||||||
|
<HeaderBell />
|
||||||
|
) : (
|
||||||
|
<CustomSkeleton height={30} width={30} radius={100} />
|
||||||
|
),
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<ViewWrapper
|
<ViewWrapper
|
||||||
@@ -114,25 +129,51 @@ export default function Application() {
|
|||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
footerComponent={
|
footerComponent={
|
||||||
<TabSection
|
data && data ? (
|
||||||
|
<TabSection
|
||||||
tabs={tabsHome({
|
tabs={tabsHome({
|
||||||
acceptedForumTermsAt: data?.acceptedForumTermsAt,
|
acceptedForumTermsAt: data?.acceptedForumTermsAt,
|
||||||
profileId: data?.Profile?.id,
|
profileId: data?.Profile?.id,
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
|
) : (
|
||||||
|
<View style={GStyles.tabBar}>
|
||||||
|
<View style={[GStyles.tabContainer, { paddingTop: 10 }]}>
|
||||||
|
{Array.from({ length: 4 }).map((e, index) => (
|
||||||
|
<CustomSkeleton
|
||||||
|
key={index}
|
||||||
|
height={40}
|
||||||
|
width={40}
|
||||||
|
radius={100}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<StackCustom>
|
<StackCustom>
|
||||||
{/* <ButtonCustom onPress={() => router.push("./test-notifications")}>
|
|
||||||
Test Notif
|
|
||||||
</ButtonCustom> */}
|
|
||||||
|
|
||||||
<Home_ImageSection />
|
<Home_ImageSection />
|
||||||
|
|
||||||
<Home_FeatureSection />
|
{data && data ? (
|
||||||
|
<Home_FeatureSection />
|
||||||
|
) : (
|
||||||
|
<View style={stylesHome.gridContainer}>
|
||||||
|
{Array.from({ length: 4 }).map((item, index) => (
|
||||||
|
<CustomSkeleton
|
||||||
|
key={index}
|
||||||
|
style={stylesHome.gridItem}
|
||||||
|
radius={50}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</View>
|
||||||
|
)}
|
||||||
|
|
||||||
<Home_BottomFeatureSection />
|
{data ? (
|
||||||
|
<Home_BottomFeatureSection />
|
||||||
|
) : (
|
||||||
|
<CustomSkeleton height={200} />
|
||||||
|
)}
|
||||||
</StackCustom>
|
</StackCustom>
|
||||||
</ViewWrapper>
|
</ViewWrapper>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import {
|
|||||||
} from "@/components";
|
} from "@/components";
|
||||||
import LeftButtonCustom from "@/components/Button/BackButton";
|
import LeftButtonCustom from "@/components/Button/BackButton";
|
||||||
import GridTwoView from "@/components/_ShareComponent/GridTwoView";
|
import GridTwoView from "@/components/_ShareComponent/GridTwoView";
|
||||||
|
import CustomSkeleton from "@/components/_ShareComponent/SkeletonCustom";
|
||||||
import ViewWrapper from "@/components/_ShareComponent/ViewWrapper";
|
import ViewWrapper from "@/components/_ShareComponent/ViewWrapper";
|
||||||
import { MainColor } from "@/constants/color-palet";
|
import { MainColor } from "@/constants/color-palet";
|
||||||
import { ICON_SIZE_SMALL } from "@/constants/constans-value";
|
import { ICON_SIZE_SMALL } from "@/constants/constans-value";
|
||||||
@@ -64,6 +65,8 @@ export default function Portofolio() {
|
|||||||
setProfileId(response?.data?.Profile?.id);
|
setProfileId(response?.data?.Profile?.id);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{/* Header */}
|
{/* Header */}
|
||||||
@@ -87,7 +90,10 @@ export default function Portofolio() {
|
|||||||
/>
|
/>
|
||||||
<ViewWrapper>
|
<ViewWrapper>
|
||||||
{!data || !profileId ? (
|
{!data || !profileId ? (
|
||||||
<LoaderCustom />
|
<StackCustom>
|
||||||
|
<CustomSkeleton height={400} />
|
||||||
|
<CustomSkeleton height={300} />
|
||||||
|
</StackCustom>
|
||||||
) : (
|
) : (
|
||||||
<StackCustom>
|
<StackCustom>
|
||||||
<Portofolio_Data
|
<Portofolio_Data
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/* eslint-disable react-hooks/exhaustive-deps */
|
/* eslint-disable react-hooks/exhaustive-deps */
|
||||||
import { LoaderCustom } from "@/components";
|
import { LoaderCustom, StackCustom } from "@/components";
|
||||||
|
import CustomSkeleton from "@/components/_ShareComponent/SkeletonCustom";
|
||||||
import ViewWrapper from "@/components/_ShareComponent/ViewWrapper";
|
import ViewWrapper from "@/components/_ShareComponent/ViewWrapper";
|
||||||
import LeftButtonCustom from "@/components/Button/BackButton";
|
import LeftButtonCustom from "@/components/Button/BackButton";
|
||||||
import DrawerCustom from "@/components/Drawer/DrawerCustom";
|
import DrawerCustom from "@/components/Drawer/DrawerCustom";
|
||||||
@@ -43,7 +44,7 @@ export default function Profile() {
|
|||||||
onLoadUserByToken();
|
onLoadUserByToken();
|
||||||
isUserCheck();
|
isUserCheck();
|
||||||
userData(token as string);
|
userData(token as string);
|
||||||
}, [id, token])
|
}, [id, token]),
|
||||||
);
|
);
|
||||||
|
|
||||||
const isUserCheck = () => {
|
const isUserCheck = () => {
|
||||||
@@ -69,7 +70,7 @@ export default function Profile() {
|
|||||||
const lastTwoByDate = response.data
|
const lastTwoByDate = response.data
|
||||||
.sort(
|
.sort(
|
||||||
(a: any, b: any) =>
|
(a: any, b: any) =>
|
||||||
new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime()
|
new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime(),
|
||||||
) // urut desc
|
) // urut desc
|
||||||
.slice(0, 2);
|
.slice(0, 2);
|
||||||
setListPortofolio(lastTwoByDate);
|
setListPortofolio(lastTwoByDate);
|
||||||
@@ -99,7 +100,10 @@ export default function Profile() {
|
|||||||
{/* Main View */}
|
{/* Main View */}
|
||||||
<ViewWrapper>
|
<ViewWrapper>
|
||||||
{!data || !dataToken ? (
|
{!data || !dataToken ? (
|
||||||
<LoaderCustom />
|
<StackCustom>
|
||||||
|
<CustomSkeleton height={400} />
|
||||||
|
<CustomSkeleton height={200} />
|
||||||
|
</StackCustom>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<ProfileSection data={data as any} />
|
<ProfileSection data={data as any} />
|
||||||
|
|||||||
@@ -77,8 +77,12 @@ export default function NotificationInitializer() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
console.log("✅ Device token berhasil didaftarkan ke backend");
|
console.log("✅ Device token berhasil didaftarkan ke backend");
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
console.error("❌ Gagal mendaftarkan device token:", error);
|
// Log error detail tapi jangan crash aplikasi
|
||||||
|
console.error("❌ Gagal mendaftarkan device token:", error?.message);
|
||||||
|
console.error("Response status:", error?.response?.status);
|
||||||
|
console.error("Response data:", error?.response?.data);
|
||||||
|
// Skip logout - biarkan user tetap bisa pakai app meski notif gagal
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ const CustomSkeleton: React.FC<CustomSkeletonProps> = ({
|
|||||||
right: 0,
|
right: 0,
|
||||||
height: 100,
|
height: 100,
|
||||||
backgroundColor: MainColor.soft_darkblue,
|
backgroundColor: MainColor.soft_darkblue,
|
||||||
borderRadius: 4,
|
borderRadius: 1,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
@@ -171,6 +171,11 @@
|
|||||||
EEC6AC8AF9C04E91AA81C190 /* Remove signature files (Xcode workaround) */,
|
EEC6AC8AF9C04E91AA81C190 /* Remove signature files (Xcode workaround) */,
|
||||||
D2BED766D85C4781B154BD69 /* Remove signature files (Xcode workaround) */,
|
D2BED766D85C4781B154BD69 /* Remove signature files (Xcode workaround) */,
|
||||||
E01278D305D540D5B29ED50A /* Remove signature files (Xcode workaround) */,
|
E01278D305D540D5B29ED50A /* Remove signature files (Xcode workaround) */,
|
||||||
|
72EDC26CA2144B90BEFE947F /* Remove signature files (Xcode workaround) */,
|
||||||
|
0A09E19272A94BEBAAF5A27A /* Remove signature files (Xcode workaround) */,
|
||||||
|
9B007D2599C64C7F8F525B86 /* Remove signature files (Xcode workaround) */,
|
||||||
|
1393AE9C86924FA8B1F8D11E /* Remove signature files (Xcode workaround) */,
|
||||||
|
E1F9AE3DCABE4A088A05E180 /* Remove signature files (Xcode workaround) */,
|
||||||
);
|
);
|
||||||
buildRules = (
|
buildRules = (
|
||||||
);
|
);
|
||||||
@@ -779,6 +784,91 @@
|
|||||||
rm -rf \"$CONFIGURATION_BUILD_DIR/MapLibre.xcframework-ios.signature\";
|
rm -rf \"$CONFIGURATION_BUILD_DIR/MapLibre.xcframework-ios.signature\";
|
||||||
";
|
";
|
||||||
};
|
};
|
||||||
|
72EDC26CA2144B90BEFE947F /* Remove signature files (Xcode workaround) */ = {
|
||||||
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
name = "Remove signature files (Xcode workaround)";
|
||||||
|
inputPaths = (
|
||||||
|
);
|
||||||
|
outputPaths = (
|
||||||
|
);
|
||||||
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "
|
||||||
|
echo \"Remove signature files (Xcode workaround)\";
|
||||||
|
rm -rf \"$CONFIGURATION_BUILD_DIR/MapLibre.xcframework-ios.signature\";
|
||||||
|
";
|
||||||
|
};
|
||||||
|
0A09E19272A94BEBAAF5A27A /* Remove signature files (Xcode workaround) */ = {
|
||||||
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
name = "Remove signature files (Xcode workaround)";
|
||||||
|
inputPaths = (
|
||||||
|
);
|
||||||
|
outputPaths = (
|
||||||
|
);
|
||||||
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "
|
||||||
|
echo \"Remove signature files (Xcode workaround)\";
|
||||||
|
rm -rf \"$CONFIGURATION_BUILD_DIR/MapLibre.xcframework-ios.signature\";
|
||||||
|
";
|
||||||
|
};
|
||||||
|
9B007D2599C64C7F8F525B86 /* Remove signature files (Xcode workaround) */ = {
|
||||||
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
name = "Remove signature files (Xcode workaround)";
|
||||||
|
inputPaths = (
|
||||||
|
);
|
||||||
|
outputPaths = (
|
||||||
|
);
|
||||||
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "
|
||||||
|
echo \"Remove signature files (Xcode workaround)\";
|
||||||
|
rm -rf \"$CONFIGURATION_BUILD_DIR/MapLibre.xcframework-ios.signature\";
|
||||||
|
";
|
||||||
|
};
|
||||||
|
1393AE9C86924FA8B1F8D11E /* Remove signature files (Xcode workaround) */ = {
|
||||||
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
name = "Remove signature files (Xcode workaround)";
|
||||||
|
inputPaths = (
|
||||||
|
);
|
||||||
|
outputPaths = (
|
||||||
|
);
|
||||||
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "
|
||||||
|
echo \"Remove signature files (Xcode workaround)\";
|
||||||
|
rm -rf \"$CONFIGURATION_BUILD_DIR/MapLibre.xcframework-ios.signature\";
|
||||||
|
";
|
||||||
|
};
|
||||||
|
E1F9AE3DCABE4A088A05E180 /* Remove signature files (Xcode workaround) */ = {
|
||||||
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
name = "Remove signature files (Xcode workaround)";
|
||||||
|
inputPaths = (
|
||||||
|
);
|
||||||
|
outputPaths = (
|
||||||
|
);
|
||||||
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "
|
||||||
|
echo \"Remove signature files (Xcode workaround)\";
|
||||||
|
rm -rf \"$CONFIGURATION_BUILD_DIR/MapLibre.xcframework-ios.signature\";
|
||||||
|
";
|
||||||
|
};
|
||||||
/* End PBXShellScriptBuildPhase section */
|
/* End PBXShellScriptBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXSourcesBuildPhase section */
|
/* Begin PBXSourcesBuildPhase section */
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>1</string>
|
<string>2</string>
|
||||||
<key>ITSAppUsesNonExemptEncryption</key>
|
<key>ITSAppUsesNonExemptEncryption</key>
|
||||||
<false/>
|
<false/>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
|
|||||||
@@ -36,10 +36,6 @@ export default function Home_BottomFeatureSection() {
|
|||||||
}, [])
|
}, [])
|
||||||
);
|
);
|
||||||
|
|
||||||
if (listData === null) {
|
|
||||||
return <CustomSkeleton height={200}/>
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ClickableCustom onPress={() => router.push("/job")}>
|
<ClickableCustom onPress={() => router.push("/job")}>
|
||||||
|
|||||||
@@ -15,13 +15,14 @@ export async function apiDeviceRegisterToken({
|
|||||||
data: DeviceTokenData;
|
data: DeviceTokenData;
|
||||||
}) {
|
}) {
|
||||||
try {
|
try {
|
||||||
const response = await apiConfig.post(`/mobile/auth/device-tokens`, {
|
const response = await apiConfig.post(`/mobile/auth/device-tokens`, data);
|
||||||
data: data,
|
|
||||||
});
|
|
||||||
|
|
||||||
return response.data;
|
return response.data;
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
console.error("Failed to register device token:", error);
|
console.error("Failed to register device token:", error);
|
||||||
|
console.error("Response data:", error?.response?.data);
|
||||||
|
console.error("Response status:", error?.response?.status);
|
||||||
|
console.error("Request payload:", data);
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user