on master help sign in
fix: minor comment note about Maybe<Result<>> pattern in birthday store
5ebb940Matt Condon (shrugs)
src/store/lib/useBirthdaysStore.js+1−1
@@ -45,7 +45,7 @@ export default function useBirthdayStore() {
45 [point]: Just(new Date(block.timestamp * 1000)),
45 [point]: Just(new Date(block.timestamp * 1000)),
46 });
46 });
47 } else {
47 } else {
48− // TODO: better encoding for "no birthday" state?
48+ // TODO: better encoding for "no birthday" state using Result.Ok/Error
49 // if there's no birthday, just use today
49 // if there's no birthday, just use today
50 addToBirthdayCache({
50 addToBirthdayCache({
51 [point]: Just(new Date()),
51 [point]: Just(new Date()),