Disable fetch token if KYC is disabled
This commit is contained in:
parent
80ce257e00
commit
059e8a351b
@ -64,7 +64,7 @@ const OnboardingSuccess = () => {
|
||||
setLoading(false);
|
||||
};
|
||||
|
||||
if (cosmosAddress) {
|
||||
if (cosmosAddress && ENABLE_KYC) {
|
||||
getToken(cosmosAddress).catch(error => {
|
||||
console.error(error);
|
||||
alert("Failed to fetch token");
|
||||
|
@ -69,6 +69,7 @@ const SignWithNitroKey = () => {
|
||||
});
|
||||
} else {
|
||||
const kycIdHash = ethers.utils.sha256(ethers.utils.toUtf8Bytes(cosmosAddress));
|
||||
|
||||
navigate("/sign-with-cosmos", {
|
||||
state: {
|
||||
message,
|
||||
|
Loading…
Reference in New Issue
Block a user