Skip to content
  • Benjamin Bouvier's avatar
    client: don't fetch the budget twice when changing budget date · 866bea44
    Benjamin Bouvier authored
    This was sending the fetch-budget request twice:
    
    - once in `setPeriod`
    - once because the effect would be triggered, noticing budgets haven't
      been set for this particular date combination, thus it would fetch
      them from the server.
    
    Instead, make `setPeriod` a pure UI request, and just rely on the effect
    for fetching the budgets.
    866bea44