Disable KYC verification using const flag #11

Merged
nabarun merged 3 commits from deep-stack/testnet-onboarding-app:iv-disable-kyc-flag into main 2024-08-07 05:52:58 +00:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit 059e8a351b - Show all commits

View File

@ -64,7 +64,7 @@ const OnboardingSuccess = () => {
setLoading(false); setLoading(false);
}; };
if (cosmosAddress) { if (cosmosAddress && ENABLE_KYC) {
getToken(cosmosAddress).catch(error => { getToken(cosmosAddress).catch(error => {
console.error(error); console.error(error);
alert("Failed to fetch token"); alert("Failed to fetch token");

View File

@ -69,6 +69,7 @@ const SignWithNitroKey = () => {
}); });
} else { } else {
const kycIdHash = ethers.utils.sha256(ethers.utils.toUtf8Bytes(cosmosAddress)); const kycIdHash = ethers.utils.sha256(ethers.utils.toUtf8Bytes(cosmosAddress));
navigate("/sign-with-cosmos", { navigate("/sign-with-cosmos", {
state: { state: {
message, message,