Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Fix atom
Browse files Browse the repository at this point in the history
  • Loading branch information
w4ll3 committed Jul 25, 2023
1 parent 4c092ce commit 53c2011
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function Layout(props: {
const data = await agent.getProfile({
actor: parsedData.did
});
setUser(data.data);
(setUser as any)(data.data);
return data;
} catch (error) {
console.error(error);
Expand Down
2 changes: 1 addition & 1 deletion src/store/user.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AppBskyActorDefs } from '@atproto/api';
import { atom } from 'jotai';

export const userAtom = atom<AppBskyActorDefs.ProfileView | null>(null);
export const userAtom = atom<AppBskyActorDefs.ProfileView | null>(undefined);
2 changes: 1 addition & 1 deletion src/utils/web3modalV2Settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function walletClientToEthers5Signer(walletClient: WalletClient) {
name: chain.name,
ensAddress: chain.contracts?.ensRegistry?.address
};
const provider = new providers.Web3Provider(transport, network);
const provider = new providers.Web3Provider(transport as any, network);
const signer = provider.getSigner(account.address);
return signer;
}

0 comments on commit 53c2011

Please sign in to comment.