Skip to content

Commit

Permalink
fix: unit
Browse files Browse the repository at this point in the history
  • Loading branch information
gururamu4 committed Feb 7, 2025
1 parent db98bf9 commit 2092a5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions demo/redirect-flow-example/src/composibles/useCoreKit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ interface CoreKitContextType {
setKeyType: React.Dispatch<React.SetStateAction<KeyType>>;
keyType: KeyType;
networkName: "ETH" | "SOL" | "BTC" | undefined;
coin: "ETH" | "SOL" | "SATS" | undefined;
coin: "ETH" | "SOL" | "tBTC" | undefined;
}

// Create the context with default values
Expand Down Expand Up @@ -121,7 +121,7 @@ export const CoreKitProvider: React.FC<CoreKitProviderProps> = ({ children }) =>
const [existingModules, setExistingModules] = React.useState<string[]>([]);
const [keyType, setKeyType] = React.useState<KeyType>(localStorage.getItem("keyType") as KeyType || KeyType.secp256k1);
const [networkName, setNetworkName] = useState<"ETH" | "SOL" | "BTC">();
const [coin, setCoin] = useState<"ETH" | "SOL" | "SATS">();
const [coin, setCoin] = useState<"ETH" | "SOL" | "tBTC">();

useEffect(() => {
localStorage.setItem("keyType", keyType);
Expand All @@ -131,7 +131,7 @@ export const CoreKitProvider: React.FC<CoreKitProviderProps> = ({ children }) =>
);
setCoin(keyType === KeyType.secp256k1 ? "ETH"
: keyType === KeyType.ed25519 ? "SOL"
: "SATS"
: "tBTC"
);
setCoreKitInstance(new Web3AuthMPCCoreKit({
...initialWeb3AuthConfig,
Expand Down

0 comments on commit 2092a5a

Please sign in to comment.