mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-06-14 12:31:02 +00:00
fix: remove unused variables (lint errors)
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 448 KiB |
@@ -23,7 +23,7 @@ type FormData = Omit<CitizenshipData, 'walletAddress' | 'timestamp'>;
|
|||||||
|
|
||||||
export const NewCitizenApplication: React.FC<NewCitizenApplicationProps> = ({ onClose, referrerAddress }) => {
|
export const NewCitizenApplication: React.FC<NewCitizenApplicationProps> = ({ onClose, referrerAddress }) => {
|
||||||
// identityKyc pallet is on People Chain
|
// identityKyc pallet is on People Chain
|
||||||
const { api, isApiReady, peopleApi, isPeopleReady, selectedAccount, connectWallet } = usePezkuwi();
|
const { peopleApi, isPeopleReady, selectedAccount, connectWallet } = usePezkuwi();
|
||||||
const { register, handleSubmit, watch, setValue, formState: { errors } } = useForm<FormData>();
|
const { register, handleSubmit, watch, setValue, formState: { errors } } = useForm<FormData>();
|
||||||
|
|
||||||
const [submitting, setSubmitting] = useState(false);
|
const [submitting, setSubmitting] = useState(false);
|
||||||
@@ -34,7 +34,6 @@ export const NewCitizenApplication: React.FC<NewCitizenApplicationProps> = ({ on
|
|||||||
const [agreed, setAgreed] = useState(false);
|
const [agreed, setAgreed] = useState(false);
|
||||||
const [confirming, setConfirming] = useState(false);
|
const [confirming, setConfirming] = useState(false);
|
||||||
const [applicationHash, setApplicationHash] = useState<string>('');
|
const [applicationHash, setApplicationHash] = useState<string>('');
|
||||||
const [checkingStatus, setCheckingStatus] = useState(false);
|
|
||||||
|
|
||||||
const maritalStatus = watch('maritalStatus');
|
const maritalStatus = watch('maritalStatus');
|
||||||
const childrenCount = watch('childrenCount');
|
const childrenCount = watch('childrenCount');
|
||||||
@@ -115,7 +114,6 @@ export const NewCitizenApplication: React.FC<NewCitizenApplicationProps> = ({ on
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
setCheckingStatus(true);
|
|
||||||
try {
|
try {
|
||||||
const status = await getKycStatus(peopleApi, selectedAccount.address);
|
const status = await getKycStatus(peopleApi, selectedAccount.address);
|
||||||
if (import.meta.env.DEV) console.log('Current KYC Status from People Chain:', status);
|
if (import.meta.env.DEV) console.log('Current KYC Status from People Chain:', status);
|
||||||
@@ -135,8 +133,6 @@ export const NewCitizenApplication: React.FC<NewCitizenApplicationProps> = ({ on
|
|||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (import.meta.env.DEV) console.error('Error checking KYC status:', err);
|
if (import.meta.env.DEV) console.error('Error checking KYC status:', err);
|
||||||
} finally {
|
|
||||||
setCheckingStatus(false);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user