Show error right

This commit is contained in:
Owen
2026-05-29 17:11:44 -07:00
parent 0ab1854125
commit 9f83c0a0e8
2 changed files with 4 additions and 4 deletions

View File

@@ -419,7 +419,7 @@ export default function Page() {
pamMode === "push" &&
portVal
? Number(portVal)
: null;
: undefined;
Object.assign(payload, {
subdomain: sanitizedSubdomain
@@ -430,7 +430,7 @@ export default function Page() {
mode: resourceType,
pamMode,
authDaemonMode: effectiveMode,
authDaemonPort: effectivePort
authDaemonPort: effectivePort || undefined
});
} else {
const tcpUdpData = tcpUdpForm.getValues();

View File

@@ -82,8 +82,8 @@ export default async function SshPage() {
error = "Failed to sign SSH key for PAM push authentication.";
}
}
} catch (error) {
console.error("Error fetching browser target:", error);
} catch (err) {
console.error("Error fetching browser target:", err);
error = "No resource found for this domain";
}