Skip to content

Commit

Permalink
Update src/app/kvm/components/SettingsBackLink/SettingsBackLink.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Makowski <peter@makowski.uk>
  • Loading branch information
ndv99 and petermakowski authored Mar 26, 2024
1 parent 2106db6 commit d830511
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type LocationState = {
const SettingsBackLink = (): JSX.Element | null => {
const location = useLocation();
const state = location.state as LocationState;
if (!state?.from || state === undefined) {
if (!state?.from) {
return null;
}

Expand Down

0 comments on commit d830511

Please sign in to comment.