Skip to content

Commit

Permalink
fix: hardcoded network name
Browse files Browse the repository at this point in the history
  • Loading branch information
totraev committed Dec 9, 2024
1 parent 96992f5 commit 8904089
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/app/components/Modals/StakeModal.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { MdEditNote } from "react-icons/md";

import { getNetworkConfig } from "@/config/network.config";

import { SubmitModal } from "./SubmitModal";

const { networkName } = getNetworkConfig();

interface StakeModalProps {
processing?: boolean;
open: boolean;
Expand All @@ -20,7 +24,7 @@ export function StakeModal({
processing={processing}
open={open}
icon={<MdEditNote size={52} />}
title="Sign and Send to BTC"
title={`Sign and Send to ${networkName}`}
onClose={onClose}
onSubmit={onSubmit}
>
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/Modals/UnbondModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const UnbondModal = ({ delegation, ...props }: UnbondModalProps) => {
<Text variant="body1" className="pt-6 pb-16">
You are about to unbond your stake before its expiration. A transaction
fee of {satoshiToBtc(delegation?.stakingAmount ?? 0)} {config.coinName}{" "}
will be deduced from your stake by the BTC signet network.
will be deduced from your stake by the {config.networkName} network.
<br />
<br />
The expected unbonding time will be about 7 days. After unbonded, you
Expand Down

0 comments on commit 8904089

Please sign in to comment.