From a7a5aa2690a3764a72f51601ba793926afd2eb37 Mon Sep 17 00:00:00 2001 From: kodjomoustapha <107993382+kodjodevf@users.noreply.github.com> Date: Sat, 23 Nov 2024 16:31:18 +0100 Subject: [PATCH] fix --- lib/utils/utils.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/utils.dart b/lib/utils/utils.dart index 9d4c59c..1fc7812 100644 --- a/lib/utils/utils.dart +++ b/lib/utils/utils.dart @@ -5,7 +5,7 @@ import 'package:mangayomi/models/source.dart'; Source? getSource(String lang, String name) { try { final sourcesList = isar.sources.filter().idIsNotNull().findAllSync(); - return sourcesList.firstWhere( + return sourcesList.lastWhere( (element) => element.name!.toLowerCase() == name.toLowerCase() && element.lang == lang,