Stock Market: announce to family check is a bit weak

This code passes in Stock Market excercise despite instructions state you should announce value only after 20 years passed (thus yearly announcements should be not allowed).

// Track your money on the stock market
let year = 2026
let balance = 10

repeat (20) {
  balance = balance * (1 + marketGrowth(year) / 100)
  reportTax(year, balance)
  year = year + 1
  announceToFamily(balance)
}
1 Like

Thank you, that helps. I didn’t know, where the bug is. As it still told me that I announced different taxes that should be. This solves it.

Thanks for reporting. Fix deploying shortly! :slight_smile: