Skip to content

Commit

Permalink
Fix hash equality (#1304)
Browse files Browse the repository at this point in the history
This uses the recommended `===` instead of `==` for (string) hash
comparison. Typo the first time around.
  • Loading branch information
nmattia authored Mar 6, 2023
1 parent 63a437c commit 914eb5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const init = async () => {
const connection = new Connection(readCanisterId());

// Simple, #-based routing
if (url.hash == "#authorize") {
if (url.hash === "#authorize") {
// User was brought here by a dapp for authorization
void authFlowAuthorize(connection);
} else {
Expand Down

0 comments on commit 914eb5f

Please sign in to comment.