address greptile comments

This commit is contained in:
Harsh Mahajan
2026-04-02 17:32:17 +05:30
parent fc43e009be
commit 740bdb4e24
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -8,8 +8,9 @@
import { Typography } from '@appwrite.io/pink-svelte';
$effect(() => {
if (isVerifyEmailRedirectError(page.error)) {
goto(resolve('/verify-email'), { replaceState: true });
const verifyEmailPath = resolve('/verify-email');
if (isVerifyEmailRedirectError(page.error) && page.url.pathname !== verifyEmailPath) {
goto(verifyEmailPath, { replaceState: true });
}
});
</script>
+1 -1
View File
@@ -27,7 +27,7 @@ export const load: LayoutLoad = async ({ depends, parent, url }) => {
depends(Dependencies.ORGANIZATION);
const [preferences, rawConsoleVariables, versionData] = await Promise.all([
sdk.forConsole.account.getPrefs(),
sdk.forConsole.account.getPrefs().catch(() => ({}) as Models.DefaultPreferences),
sdk.forConsole.console.variables().catch(() => ({}) as Models.ConsoleVariables),
fetch(`${endpoint}/health/version`, {
headers: { 'X-Appwrite-Project': project as string }