enhance company approval workflow and TIN validation; add pending approval handling in booking and onboarding forms

This commit is contained in:
Marshal
2026-06-23 08:37:15 +00:00
parent 1d77f377f3
commit 6fd1b68389
13 changed files with 276 additions and 59 deletions

View File

@@ -33,7 +33,7 @@ export default function ETradeInfo({
const hasData = mutation.data;
const handleFetch = async () => {
if (!tin || tin.length !== 10) return;
if (!tin || tin.length !== 10 || !tin.startsWith("00")) return;
const result = await mutation.mutateAsync(tin);
if (result) {
onDataLoaded(result);
@@ -60,7 +60,7 @@ export default function ETradeInfo({
variant="filled"
color="edr-green"
onClick={handleFetch}
disabled={!tin || tin.length !== 10 || isLoading}
disabled={!tin || tin.length !== 10 || !tin.startsWith("00") || isLoading}
leftSection={
isLoading ? <Loader size={16} /> : <Download size={16} />
}