mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2025-12-18 23:04:25 +01:00
Only show the beta warning for mainnet
This commit is contained in:
committed by
Tony Giorgio
parent
7cf0ee7d20
commit
2d69edd78d
@@ -3,6 +3,7 @@ import { ParentComponent, createSignal } from "solid-js";
|
||||
import { DIALOG_CONTENT, DIALOG_POSITIONER, OVERLAY } from "./DetailsModal";
|
||||
import { ModalCloseButton, SmallHeader } from "./layout";
|
||||
import { ExternalLink } from "./layout/ExternalLink";
|
||||
import { getExistingSettings } from "~/logic/mutinyWalletSetup";
|
||||
|
||||
export function BetaWarningModal() {
|
||||
return (
|
||||
@@ -40,7 +41,8 @@ export const WarningModal: ParentComponent<{
|
||||
title: string;
|
||||
}> = (props) => {
|
||||
const [open, setOpen] = createSignal(
|
||||
localStorage.getItem("betaWarned") !== "true"
|
||||
localStorage.getItem("betaWarned") !== "true" &&
|
||||
getExistingSettings().network === "bitcoin"
|
||||
);
|
||||
|
||||
function close() {
|
||||
|
||||
Reference in New Issue
Block a user