fix(oracle-l6): close 2 actionable caveats

1. Approvals tenantId hydration race
   loadQueue used to fall back to 'show all rows' when tenantId was
   null. Now early-returns []  until tenantId hydrates, and the effect
   depends on tenantId so it reloads once auth completes.

2. Settings persona quick-switch threw 'Password required'
   signIn() in Settings called loginAs(email) without options.method.
   Now explicit { method: 'dev' } so the documented dev-login path
   is used.
This commit is contained in:
2026-06-14 16:40:43 +04:00
parent 2150636fd0
commit 739245b3d7
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ export default function Settings() {
const signIn = async (email: string) => {
setSigningIn(true);
try {
await loginAs(email);
await loginAs(email, undefined, { method: "dev" });
} finally {
setSigningIn(false);
}