Skip to content

Commit cdfbc7a

Browse files
committed
fix(submit-proofs): update verbiage for foundationFunded transactions
1 parent f4ad586 commit cdfbc7a

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

components/Bridge/v3/Steps/SubmitProofs.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,14 @@ const SubmitProofs: React.FC<Props> = ({ successStatus }) => {
4545
const foundation = useSyscoinSubmitProofs(transfer, onSuccess);
4646
const self = useSubmitProof(transfer, spvProof);
4747

48+
const foundationFundingAvailable = isEnabled("foundationFundingAvailable");
49+
4850
const {
4951
mutate: submitProofs,
5052
isLoading: isSigning,
5153
isError: isSignError,
5254
error: signError,
53-
} = isEnabled("foundationFundingAvailable") ? foundation : self;
55+
} = foundationFundingAvailable ? foundation : self;
5456

5557
const sign = () => {
5658
submitProofs(undefined, { onSuccess });
@@ -65,7 +67,13 @@ const SubmitProofs: React.FC<Props> = ({ successStatus }) => {
6567
}
6668

6769
if (isSigning) {
68-
return <Alert severity="info">Check NEVM Wallet for signing</Alert>;
70+
return (
71+
<Alert severity="info">
72+
{foundationFundingAvailable
73+
? "Submitting proofs..."
74+
: "Check NEVM Wallet for signing"}
75+
</Alert>
76+
);
6977
}
7078

7179
if (isSignError) {

0 commit comments

Comments
 (0)