Skip to content

Commit

Permalink
look for tokenid if the new attestation format isnt present.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Taras authored and Nick Taras committed Oct 18, 2023
1 parent 019b684 commit 72278b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/outlet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ export class Outlet extends LocalOutlet {
const token: string = this.getDataFromQuery('tn-token')
const wallet: string = this.getDataFromQuery('wallet')
const address: string = this.getDataFromQuery('address')
const tokenParsed = JSON.parse(token)
const tokenId = tokenParsed.tokenId
const tokenParsed = token ? JSON.parse(token) : undefined
const tokenId = tokenParsed.tokenId ?? this.getDataFromQuery('tokenId')
requiredParams(tokenId, 'tokenId is missing')
const redirect = this.getDataFromQuery('redirect') === 'true' ? window.location.href : false
try {
Expand Down

0 comments on commit 72278b8

Please sign in to comment.