Skip to content

Commit

Permalink
Reduce aliasing
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoch committed Dec 17, 2024
1 parent 0032f1c commit ec721dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/idos-example-dapp/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,13 +266,13 @@ const connectWallet = {

if (chosenFlow.grants) {
/** @type {string} */
let owner;
let ownerAddress;
switch (chosenWallet) {
case "EVM":
owner = address;
ownerAddress = address;
break;
case "NEAR":
owner = idos.auth.currentUser.publicKey;
ownerAddress = idos.auth.currentUser.publicKey;
break;
default:
throw new Error("Unreachable");
Expand All @@ -283,7 +283,7 @@ const connectWallet = {
.wait(
"awaiting RPC",
cache.get("grants") ||
idos.grants.list({ ownerAddress: owner, granteeAddress: granteeInfo.grantee }),
idos.grants.list({ ownerAddress, granteeAddress: granteeInfo.grantee }),
);
cache.set("grants", grants);

Expand Down

0 comments on commit ec721dd

Please sign in to comment.