Skip to content

Commit

Permalink
fix npm warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnaveira committed Jul 24, 2024
1 parent ecdcf9e commit 1f5ffb8
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const ConnectorDialog = () => {
const theme = useTheme();
const [_chosenOptionalPermissions, setChosenOptionalPermissions] = useState<boolean[]>([]);

const [web3wallet, setWeb3wallet] = useState<Web3Wallet | undefined>();
const [web3wallet, setWeb3wallet] = useState<any | undefined>();

// TODO: send permissions on WC request
const permissions: TariPermission[] = [
Expand All @@ -62,7 +62,10 @@ const ConnectorDialog = () => {
];
const optionalPermissions: TariPermission[] = [];

async function createWallet(): Web3Wallet | null {
async function createWallet(): Promise<any| null> {
if (!projectId)
return null;

const core = new Core({ projectId });
const wallet = await Web3Wallet.init({
core: core,
Expand Down

0 comments on commit 1f5ffb8

Please sign in to comment.