Skip to content

Commit

Permalink
nit: inverse the condition
Browse files Browse the repository at this point in the history
  • Loading branch information
technophile-04 committed Aug 15, 2024
1 parent f8fb7ac commit e913252
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/nextjs/components/scaffold-eth/ProgressBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ export function ProgressBar() {
const targetUrl = anchor.href;
const currentUrl = location.href;
const isTargetBlank = anchor?.target === "_blank";
if (targetUrl !== currentUrl && !isTargetBlank) {
NProgress.start();
}
if (targetUrl === currentUrl || isTargetBlank) return;
NProgress.start();
};

const handleMutation: MutationCallback = () => {
Expand Down

0 comments on commit e913252

Please sign in to comment.