Disable fetch token if KYC is disabled

This commit is contained in:
IshaVenikar 2024-08-07 11:08:44 +05:30
parent 80ce257e00
commit 059e8a351b
2 changed files with 2 additions and 1 deletions

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,