Instead of declaring these with *var* here in the *if* block and also in the *else* block, declare them with the *let components* declaration outside of the conditional blocks, then only assign them in the conditional blocks.