Skip to content

Commit

Permalink
Merge pull request #224 from TokenScript/feat/wip-multi-auth
Browse files Browse the repository at this point in the history
Feat/wip multi auth
  • Loading branch information
nicktaras committed Jul 14, 2023
2 parents 3edea87 + 98cfba1 commit c689d08
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ticket-issuer-url-website/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,9 @@ function App() {

window.negotiator.on("tokens", (issuerTokens) => {
let tokens = [];

tokenIssuers.forEach((issuer) => {
tokens.push(...issuerTokens[issuer.collectionID].tokens);
});

setTokens(tokens);
});

Expand Down Expand Up @@ -167,7 +165,7 @@ function App() {
const openTicketInIframe = async ({event, ticketId, ticketClass}) => {
event.preventDefault();

if (!document.getElementById("form")[0].checkValidity()) {
if (!document.getElementById("form")[1].checkValidity()) {
alert("Please enter an email");
return;
}
Expand Down Expand Up @@ -258,7 +256,7 @@ function App() {
label={"Email:"}
id={"email"}
style={{display: "block"}}
required={true}
required
/>
</div>
<div className="flexCenter">
Expand Down

0 comments on commit c689d08

Please sign in to comment.