Skip to content

Commit

Permalink
fix: remove unnecessary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
daledah committed Sep 4, 2024
1 parent d15a5f4 commit bbbf915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/workspace/withPolicy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default function <TProps extends WithPolicyProps, TRef>(WrappedComponent:
const currentRoute = routes?.at(-1);
const policyID = getPolicyIDFromRoute(currentRoute as PolicyRoute);

if (policyID.length > 0 && props.policy) {
if (policyID.length > 0) {
Policy.updateLastAccessedWorkspace(policyID);
}

Expand Down

0 comments on commit bbbf915

Please sign in to comment.