bug: redirect to index
This commit is contained in:
parent
936473d438
commit
a2d0cbd7bb
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user