diff --git a/src/components/dapp/WalletButton.tsx b/src/components/dapp/WalletButton.tsx
index 250976e3d..85e4a4231 100644
--- a/src/components/dapp/WalletButton.tsx
+++ b/src/components/dapp/WalletButton.tsx
@@ -1,6 +1,6 @@
import { type ReactNode, useMemo } from "react";
import { useWalletContext } from "../../context/Wallet.context";
-import { Format } from "../../utils/format";
+import { Fmt } from "../../utils/formatter.service";
import Dropdown from "../extenders/Dropdown";
import Group from "../extenders/Group";
import Modal from "../extenders/Modal";
@@ -16,27 +16,36 @@ import WalletConnectors from "./WalletConnectors";
export type WalletButton = ButtonProps;
export default function WalletButton(props: ButtonProps) {
- const { address, disconnect, connected, connector, chainId, switchChain, chains } = useWalletContext();
+ const {
+ address,
+ disconnect,
+ connected,
+ connector,
+ chainId,
+ switchChain,
+ chains,
+ } = useWalletContext();
const chainOptions = useMemo(() => {
if (!chains) return [];
- return chains.reduce(
- (obj, chain) => {
- obj[chain.id] = (
-
-
- {chain.name}
-
- );
- return obj;
- },
- {} as { [chainId: number]: ReactNode },
- );
+ return chains.reduce((obj, chain) => {
+ obj[chain.id] = (
+
+
+ {chain.name}
+
+ );
+ return obj;
+ }, {} as { [chainId: number]: ReactNode });
}, [chains]);
if (!connected)
return (
- }>
+ }
+ >
@@ -45,7 +54,10 @@ export default function WalletButton(props: ButtonProps) {
return (
<>
-