Disable fetch token if KYC is disabled
This commit is contained in:
parent
80ce257e00
commit
059e8a351b
@ -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");
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user