From 3b66ef1f200af36488937fab0e5b09dc5216a46e Mon Sep 17 00:00:00 2001 From: 0xExp-po Date: Mon, 9 Dec 2024 17:19:27 +0900 Subject: [PATCH] fix: linting error --- dapp/src/components/page/governance/ProposalForm.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dapp/src/components/page/governance/ProposalForm.tsx b/dapp/src/components/page/governance/ProposalForm.tsx index 3d89e65..6ad5692 100644 --- a/dapp/src/components/page/governance/ProposalForm.tsx +++ b/dapp/src/components/page/governance/ProposalForm.tsx @@ -191,7 +191,7 @@ const ProposalForm: React.FC = () => { } const space = await client.addSpace(delegation.ok); - + await client.setCurrentSpace(space.did()); const proposalOutcome: ProposalOutcome = { @@ -259,7 +259,7 @@ const ProposalForm: React.FC = () => { window.location.href = `/governance?name=${projectName}`; } - } catch (error : any) { + } catch (error: any) { setIsLoading(false); console.error("submit proposal error:", error.cause); alert("Error submitting proposal.");