Skip to content

Commit 1684e64

Browse files
committed
refactor(customNextPage.js): add loading state and reset transaction link before updating ZK program to improve user experience
1 parent 4446562 commit 1684e64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/ui/next/customNextPage.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ export default function Home() {
9797
}, []);
9898
9999
const updateZKprogram = async () => {
100+
setTransactionLink(null);
101+
setLoading(true);
102+
100103
if (contractState && proof) {
101104
const update = await zkProgram.update(contractState, proof);
102105
setProof(update.proof);

0 commit comments

Comments
 (0)