Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
sehyunc committed Oct 30, 2024
1 parent 54d48b0 commit 29becf5
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions components/dialogs/sign-in-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,21 @@ export function SignInDialog({
const id = getWalletId(config)
config.setState((x) => ({ ...x, id }))
setIsConnecting(true)
// try {
// // GET wallet from relayer
// const wallet = await getWalletFromRelayer(config)
// // If success, return
// if (wallet) {
// config.setState((x) => ({ ...x, status: "in relayer" }))
// toast.success("Successfully signed in", {
// id: toastId,
// icon: undefined,
// })
// onOpenChange(false)
// setIsConnecting(false)
// return
// }
// } catch (error) {}
try {
// GET wallet from relayer
const wallet = await getWalletFromRelayer(config)
// If success, return
if (wallet) {
config.setState((x) => ({ ...x, status: "in relayer" }))
toast.success("Successfully signed in", {
id: toastId,
icon: undefined,
})
onOpenChange(false)
setIsConnecting(false)
return
}
} catch (error) {}

// GET # logs
const blinderShare = config.utils.derive_blinder_share(data)
Expand Down

0 comments on commit 29becf5

Please sign in to comment.