Skip to content

Commit

Permalink
remove hive related function
Browse files Browse the repository at this point in the history
  • Loading branch information
lifayi2008 committed Dec 1, 2022
1 parent 8730876 commit 949ef78
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/components/signin-dlg/SignInDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ export default function SignInDialog() {
? await window.elastos.getWeb3Provider().address
: essentialsConnector.getWalletConnectProvider().wc.accounts[0]
);
const mydid = sessionStorage.getItem('PASAR_DID');
getAvatarUrl(mydid);
// const mydid = sessionStorage.getItem('PASAR_DID');
// getAvatarUrl(mydid);
setActivatingConnector(essentialsConnector);
} else if (sessionLinkFlag === '3') {
setActivatingConnector(walletconnect);
Expand Down Expand Up @@ -475,21 +475,21 @@ export default function SignInDialog() {

// HIVE START
// TODO: IMPROVE HIVE LOGIN
prepareConnectToHive()
.then((res) => {
creatAndRegister(true);
console.log(res);
})
.catch((error) => {
console.log('Register scripting error: ', error);
});
// prepareConnectToHive()
// .then((res) => {
// creatAndRegister(true);
// console.log(res);
// })
// .catch((error) => {
// console.log('Register scripting error: ', error);
// });
// HIVE END
let essentialAddress = essentialsConnector.getWalletConnectProvider().wc.accounts[0];
if (isInAppBrowser()) essentialAddress = await window.elastos.getWeb3Provider().address;
setWalletAddress(essentialAddress);
setActivatingConnector(essentialsConnector);
setSigninEssentialSuccess(true);
getAvatarUrl(did);
// getAvatarUrl(did);

if (afterSigninPath) {
setOpenSigninEssentialDlg(false);
Expand Down

1 comment on commit 949ef78

@vercel
Copy link

@vercel vercel bot commented on 949ef78 Dec 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.