Skip to content

Commit 2abad9f

Browse files
committed
fix(web): fix-bugs-with-ens-resolving
1 parent d08ca07 commit 2abad9f

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

web/src/pages/Resolver/Parameters/NotablePersons/PersonFields.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const AliasContainer = styled.div`
4141
const PersonFields: React.FC = () => {
4242
const { disputeData, setDisputeData } = useNewDisputeContext();
4343
const validationTimerRef = useRef<NodeJS.Timeout | null>(null);
44-
const publicClient = usePublicClient();
44+
const publicClient = usePublicClient({ chainId: 1 });
4545

4646
const debounceValidateAddress = (address: string, key: number) => {
4747
// Clear the existing timer

web/src/pages/Resolver/index.tsx

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -76,24 +76,24 @@ const DisputeResolver: React.FC = () => {
7676
<Container>
7777
{isConnected && !isPreviewPage ? <StyledLabel>Start a case</StyledLabel> : null}
7878
{isConnected ? (
79-
// <StyledEnsureAuth>
80-
<MiddleContentContainer>
81-
{isConnected && !isPreviewPage ? <Timeline /> : null}
82-
<Routes>
83-
<Route index element={<Navigate to="title" replace />} />
84-
<Route path="/title/*" element={<Title />} />
85-
<Route path="/description/*" element={<Description />} />
86-
<Route path="/court/*" element={<Court />} />
87-
<Route path="/category/*" element={<Category />} />
88-
<Route path="/jurors/*" element={<Jurors />} />
89-
<Route path="/voting-options/*" element={<VotingOptions />} />
90-
<Route path="/notable-persons/*" element={<NotablePersons />} />
91-
<Route path="/policy/*" element={<Policy />} />
92-
<Route path="/preview/*" element={<Preview />} />
93-
</Routes>
94-
</MiddleContentContainer>
79+
<StyledEnsureAuth>
80+
<MiddleContentContainer>
81+
{isConnected && !isPreviewPage ? <Timeline /> : null}
82+
<Routes>
83+
<Route index element={<Navigate to="title" replace />} />
84+
<Route path="/title/*" element={<Title />} />
85+
<Route path="/description/*" element={<Description />} />
86+
<Route path="/court/*" element={<Court />} />
87+
<Route path="/category/*" element={<Category />} />
88+
<Route path="/jurors/*" element={<Jurors />} />
89+
<Route path="/voting-options/*" element={<VotingOptions />} />
90+
<Route path="/notable-persons/*" element={<NotablePersons />} />
91+
<Route path="/policy/*" element={<Policy />} />
92+
<Route path="/preview/*" element={<Preview />} />
93+
</Routes>
94+
</MiddleContentContainer>
95+
</StyledEnsureAuth>
9596
) : (
96-
// </StyledEnsureAuth>
9797
<ConnectWalletContainer>
9898
To create a new dispute, connect first
9999
<hr />

0 commit comments

Comments
 (0)