Skip to content

Commit

Permalink
fixup! feat: nami mode dapp connector
Browse files Browse the repository at this point in the history
  • Loading branch information
mirceahasegan committed Oct 4, 2024
1 parent c705cf8 commit b014a0c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/nami/src/ui/app/pages/dapp-connector/signData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,10 @@ export const SignData = ({ dappConnector, account }: Readonly<Props>) => {
return;
}

if (Wallet.Cardano.BaseAddress.fromAddress(addressObj)) {
setAddress('payment');
} else if (addressObj) {
if (Wallet.Cardano.isRewardAccount(address)) {
setAddress('stake');
} else {
console.error('SignData: Unknown address type', address);
setAddress('unknown');
setAddress('payment');
}
};

Expand Down

0 comments on commit b014a0c

Please sign in to comment.