From 79b8d1b140316b669f6ef41e4ea0d7560747009a Mon Sep 17 00:00:00 2001 From: Alex-zReeZ <145986307+Alex-zReeZ@users.noreply.github.com> Date: Fri, 5 Jul 2024 16:47:50 +0200 Subject: [PATCH] fix: fixed jwt token fetch getting no Ip (#94) * fix: fixed jwt token fetch getting no Ip * style: reformated files --- nextjs-interface/src/app/ui/dashboard/RenameElement.tsx | 4 +++- nextjs-interface/src/app/ui/dashboard/SeeToken.tsx | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/nextjs-interface/src/app/ui/dashboard/RenameElement.tsx b/nextjs-interface/src/app/ui/dashboard/RenameElement.tsx index da10aab..1f6c658 100644 --- a/nextjs-interface/src/app/ui/dashboard/RenameElement.tsx +++ b/nextjs-interface/src/app/ui/dashboard/RenameElement.tsx @@ -9,6 +9,7 @@ import { PopoverContent, PopoverTrigger, } from "@/components/ui/popover"; +import useFindIpById from "@/lib/data"; export default function RenameElement({ id }: { id: string }) { const [newName, setNewName] = useState(""); @@ -32,6 +33,7 @@ export default function RenameElement({ id }: { id: string }) { } else { } }; + const ip = useFindIpById(id); return (