Keep the browser draft on screen after Save your progress, including when the save link is dead.
This commit is contained in:
1 parent
d576ed81d9
commit
d31045b0e5
6 files changed
+141
-12
No files matched your search
@@ -14,6 +14,7 @@ import { buildCreateFlowDraftPayload } from "../../../../lib/create/buildCreateF
|
||||
import { MAGIC_LINK_TTL_MINUTES } from "../../../../lib/privacyRetention";
|
||||
import { safeInternalPath } from "../../../../lib/safeInternalPath";
|
||||
import {
|
||||
clearTransferPendingFlag,
|
||||
readAnonymousCreateFlowState,
|
||||
setTransferPendingFlag,
|
||||
} from "../../../(app)/create/utils/anonymousDraftStorage";
|
||||
@@ -212,6 +213,7 @@ export default function LoginForm({
|
||||
useEffect(() => {
|
||||
if (isExpiredLinkError(errorParam)) {
|
||||
setLinkExpired(true);
|
||||
clearTransferPendingFlag();
|
||||
}
|
||||
}, [errorParam]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user