Remove todo with issues

This commit is contained in:
Remi Rousselet
2023-10-15 22:00:25 +02:00
parent a15156691c
commit a1ded756c6
4 changed files with 1 additions and 10 deletions

View File

@ -139,7 +139,6 @@ class QuestionItem extends HookConsumerWidget {
final questionTheme = ref.watch(questionThemeProvider);
return question.when(
// TODO(rrousselGit): improve error rendering
error: (error, stack) => const Center(child: Text('Error')),
loading: () => const Center(child: Text('loading')),
data: (question) {
@ -206,7 +205,6 @@ String _useAskedHowLongAgo(DateTime creationDate) {
useEffect(
() {
void setLabel() {
// TODO use package:clock to make mock this value inside tests
final now = DateTime.now();
final diff = now.difference(creationDate);