Update frontend/src/pages/pam/PamAccountsPage/components/PamAccessAccountModal.tsx

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Andre
2025-11-21 21:01:17 -05:00
committed by GitHub
parent 7fd9dc0aa5
commit 8866c98ff0

View File

@@ -16,7 +16,7 @@ type Props = {
export const PamAccessAccountModal = ({ isOpen, onOpenChange, account }: Props) => {
const { protocol, hostname, port } = window.location;
const portSuffix = port && port !== "80" ? `:${port}` : "";
const portSuffix = port && port !== "80" && port !== "443" ? `:${port}` : "";
const siteURL = `${protocol}//${hostname}${portSuffix}`;
const [duration, setDuration] = useState("4h");