Skip to content

Commit

Permalink
feat: backBtn valuable check
Browse files Browse the repository at this point in the history
  • Loading branch information
ttang authored and ttang committed Jun 26, 2023
1 parent 6619a6e commit 7b82313
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion packages/client/scan/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function Header() {
return (
<Box>
<div>
{(showBack && (
{(showBack && window.history.length > 1 && (
<BackBtn
backAction={() => {
if (location.pathname.startsWith('/models/modelview')) {
Expand Down
1 change: 0 additions & 1 deletion packages/client/scan/src/components/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import styled from 'styled-components'
import GitHubButton from 'react-github-btn'

import Logo from './Logo'
import LoginButton from './LoginButton'
import { useCeramicCtx } from '../context/CeramicCtx'

export default function Nav() {
Expand Down

0 comments on commit 7b82313

Please sign in to comment.