Earlier I was writing a short paragraph about jobs. I mindlessly wrote some stuff until I see this sentence about a hypothetical situation:
If the environment was unsafe, it would pose certain health risks. The place you'd be working at might be shut down for that reason, leaving you unemployed.
The second sentence seemed a bit wrong at the bolded part, but I couldn't think of anything that fit better.
After some time I managed to avoid the problem (your workplace might be...) but is the original one correct in terms of grammar, and why (not)?