From 7ec926b9145dc739d32e57d46673960e3d7adf1d Mon Sep 17 00:00:00 2001 From: Alex Graham Date: Thu, 21 Jul 2022 13:58:16 -0400 Subject: [PATCH] add canton public party type --- package.json | 2 +- src/login/PartiesInput.tsx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d8fba4a..d5f8a51 100644 --- a/package.json +++ b/package.json @@ -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": [ diff --git a/src/login/PartiesInput.tsx b/src/login/PartiesInput.tsx index 8ca41e0..bbe56a5 100644 --- a/src/login/PartiesInput.tsx +++ b/src/login/PartiesInput.tsx @@ -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(