Skip to content

Commit b1db3a9

Browse files
committed
3793 client - Use strict equality operator for environment check in automation redirect
1 parent 7c1ad1e commit b1db3a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/routes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ export const getRouter = (queryClient: QueryClient) =>
432432
loader: async () => {
433433
const currentEnvironmentId = environmentStore.getState().currentEnvironmentId;
434434

435-
if (currentEnvironmentId != DEVELOPMENT_ENVIRONMENT) {
435+
if (currentEnvironmentId !== DEVELOPMENT_ENVIRONMENT) {
436436
return redirect('/automation/deployments');
437437
}
438438

0 commit comments

Comments
 (0)