Skip to content

Commit

Permalink
fix(admin-ui): Fix channel creation when pricesIncludeTax is false
Browse files Browse the repository at this point in the history
Fixes #2217
  • Loading branch information
michaelbromley committed Jun 19, 2023
1 parent 2218d42 commit 36fe1a5
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ export class ChannelDetailComponent
!code ||
!token ||
!defaultLanguageCode ||
!pricesIncludeTax ||
!defaultCurrencyCode ||
!defaultShippingZoneId ||
!defaultTaxZoneId
Expand All @@ -124,7 +123,7 @@ export class ChannelDetailComponent
code,
token,
defaultLanguageCode,
pricesIncludeTax,
pricesIncludeTax: !!pricesIncludeTax,
defaultCurrencyCode,
defaultShippingZoneId,
defaultTaxZoneId,
Expand Down Expand Up @@ -233,6 +232,8 @@ export class ChannelDetailComponent
}

private generateToken(): string {
return Array.from(crypto.getRandomValues(new Uint8Array(10))).map(b => b.toString(16).padStart(2, '0')).join('');
return Array.from(crypto.getRandomValues(new Uint8Array(10)))
.map(b => b.toString(16).padStart(2, '0'))
.join('');
}
}

0 comments on commit 36fe1a5

Please sign in to comment.