Skip to content

Commit

Permalink
Merge pull request #50 from digital-asset/public-canton
Browse files Browse the repository at this point in the history
add canton public party type
  • Loading branch information
alexgraham-da authored Jul 21, 2022
2 parents 735194d + 7ec926b commit 8901f7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@daml/hub-react",
"version": "1.1.0",
"version": "1.1.1",
"description": "Daml React functions for Daml Hub",
"homepage": "https://hub.daml.com",
"keywords": [
Expand Down
4 changes: 3 additions & 1 deletion src/login/PartiesInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ function validateParties(parties: PartyDetails[], publicPartyId: string): void {
}

// True if any ledgerIds do not match the app's deployed ledger Id
const givenPublicParty = parties.find(p => p.party.includes('public-'));
const givenPublicParty = parties.find(
p => p.party.includes('public-') || p.party.includes('public::')
);

if (!givenPublicParty) {
throw new InvalidPartiesError(
Expand Down

0 comments on commit 8901f7f

Please sign in to comment.