fix(zalouser): hide unusable QR guidance

This commit is contained in:
Jesse Merhi
2026-08-10 01:16:16 +10:00
committed by jesse-merhi
parent 5baf334ba3
commit 9ff05e101e
2 changed files with 6 additions and 2 deletions
@@ -231,6 +231,10 @@ describe("zalouser setup wizard", () => {
expect.stringContaining("Could not write QR image file"),
"QR Login",
);
expect(note).not.toHaveBeenCalledWith(
expect.stringContaining("Scan + approve on phone, then continue."),
"QR Login",
);
expect(confirmations).not.toContain("Did you scan and approve the QR on your phone?");
expect(waitForZaloQrLoginMock).not.toHaveBeenCalled();
});
+2 -2
View File
@@ -337,7 +337,7 @@ export const zalouserSetupWizard: ChannelSetupWizard = {
qrPath
? t("wizard.zalouser.qrImageSaved", { path: qrPath })
: t("wizard.zalouser.qrImageWriteFailed"),
t("wizard.zalouser.scanApproveContinue"),
...(qrPath ? [t("wizard.zalouser.scanApproveContinue")] : []),
].join("\n"),
t("wizard.zalouser.qrLoginTitle"),
);
@@ -386,7 +386,7 @@ export const zalouserSetupWizard: ChannelSetupWizard = {
qrPath
? t("wizard.zalouser.qrImageSaved", { path: qrPath })
: t("wizard.zalouser.qrImageWriteFailed"),
t("wizard.zalouser.scanApproveContinue"),
...(qrPath ? [t("wizard.zalouser.scanApproveContinue")] : []),
].join("\n"),
t("wizard.zalouser.qrLoginTitle"),
);