bug: redirect to index

This commit is contained in:
Kieran 2023-04-13 12:31:49 +01:00
parent 936473d438
commit a2d0cbd7bb
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
1 changed files with 4 additions and 1 deletions

View File

@ -1,11 +1,14 @@
import { ManageHandle } from "Nip05/SnortServiceProvider";
import { useLocation } from "react-router-dom";
import { Navigate, useLocation } from "react-router-dom";
import LNForwardAddress from "./LNAddress";
import TransferHandle from "./TransferHandle";
export default function ManageHandleIndex() {
const location = useLocation();
const handle = location.state as ManageHandle;
if (!handle) {
return <Navigate to="/settings/handle" />;
}
return (
<>
<h3 className="nip05">