This commit is contained in:
unknown
2025-04-14 17:36:13 +07:00
parent b2b312ced4
commit 0f61f3ac35

View File

@ -21,6 +21,7 @@ export default function CustomerWallet({customerid}: any) {
}); });
setCustomerWallet(getCustWallet.data.data.data); setCustomerWallet(getCustWallet.data.data.data);
} catch (error: any) { } catch (error: any) {
setCustomerWallet([])
toast.error(`Wallet Not Found`); toast.error(`Wallet Not Found`);
} }
} }
@ -29,7 +30,7 @@ export default function CustomerWallet({customerid}: any) {
<div className="bg-white p-6 rounded-md shadow-md space-y-4"> <div className="bg-white p-6 rounded-md shadow-md space-y-4">
<h2 className="text-lg font-semibold">Wallet Member</h2> <h2 className="text-lg font-semibold">Wallet Member</h2>
<Card className="p-4"> <Card className="p-4">
{customerWallet.length > 0 ? ( {customerWallet ? (
<div className="overflow-x-auto"> <div className="overflow-x-auto">
<table className="min-w-full text-sm text-left"> <table className="min-w-full text-sm text-left">
<thead className="text-xs text-gray-500 border-b"> <thead className="text-xs text-gray-500 border-b">