AOSSIE-Org / AOSSIE-Org/BabyNest

[MEDIUM] HomeScreen week calculation uses undefined dueDate

オープン
#228 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
56
フォーク
124
PR マージ指標
30日以内にマージされた PR はありません

説明

filteredAppointments references dueDate inside .map(). On initial render before fetchData(), dueDate is ''. new Date('') is Invalid Date, weekNumber becomes NaN. All appointments fail filter since NaN > 1 is false.\n\nFile: Frontend/src/Screens/HomeScreen.jsx, lines 94-96\nFix: Guard filter with if (!dueDate) return [] or use loading state

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。