diff --git a/components/modals/ResearchCoin/WithdrawModal.tsx b/components/modals/ResearchCoin/WithdrawModal.tsx
index baf945040..2a45278dd 100644
--- a/components/modals/ResearchCoin/WithdrawModal.tsx
+++ b/components/modals/ResearchCoin/WithdrawModal.tsx
@@ -4,13 +4,15 @@ import { useCallback, useMemo, useState, useEffect, useRef } from 'react';
import {
Check,
AlertCircle,
- AlertTriangle,
+ ShieldCheck,
Loader2,
Copy,
ArrowLeft,
+ ArrowRight,
ChevronDown,
} from 'lucide-react';
import Image from 'next/image';
+import Link from 'next/link';
import { BaseModal } from '@/components/ui/BaseModal';
import { BaseMenu, BaseMenuItem } from '@/components/ui/form/BaseMenu';
import { formatRSC, getMaxDecimalPlaces } from '@/utils/number';
@@ -236,6 +238,11 @@ export function WithdrawModal({
}, []);
const footer = useMemo(() => {
+ // Don't show footer if MFA is not enabled
+ if (!isMfaEnabled) {
+ return null;
+ }
+
const txHash = txStatus.state === 'success' ? txStatus.txHash : undefined;
if (txHash) {
@@ -296,6 +303,7 @@ export function WithdrawModal({
handleWithdraw,
isFeeLoading,
showMfaConfirmation,
+ isMfaEnabled,
]);
return (
@@ -404,7 +412,7 @@ export function WithdrawModal({
+ To protect your funds, withdrawals require two-factor authentication. Please + enable it in your account settings to continue. +
++ Please enter a valid Ethereum address (0x followed by 40 hex characters). +
+ ) : null} +- Please enter a valid Ethereum address (0x followed by 40 hex characters). -
- ) : null} -
+
+ Minimum withdrawal amount is {MIN_WITHDRAWAL_AMOUNT} RSC. +
)} - - -
-
- Minimum withdrawal amount is {MIN_WITHDRAWAL_AMOUNT} RSC. -
- )} - {hasInsufficientBalance && ( -- Withdrawal amount exceeds your available balance. -
- )} - {!isFeeLoading && amountUserWillReceive <= 0 && withdrawAmount > 0 && fee && ( -- Withdrawal amount must be greater than the network fee. -
- )} -+ Withdrawal amount exceeds your available balance. +
+ )} + {!isFeeLoading && amountUserWillReceive <= 0 && withdrawAmount > 0 && fee && ( ++ Withdrawal amount must be greater than the network fee. +
+ )} +