From 2ae1a5643408e0cdd02188b9bc5f71ab7c4b6b1b Mon Sep 17 00:00:00 2001 From: redDwarf03 Date: Mon, 5 Feb 2024 22:54:55 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20hive=20error=20with=20new?= =?UTF-8?q?=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/infrastructure/hive/dex_pool.hive.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/infrastructure/hive/dex_pool.hive.dart b/lib/infrastructure/hive/dex_pool.hive.dart index d182eef6..aad9d60f 100644 --- a/lib/infrastructure/hive/dex_pool.hive.dart +++ b/lib/infrastructure/hive/dex_pool.hive.dart @@ -45,12 +45,12 @@ class DexPoolHive extends HiveObject { DexPoolInfosHive? details; @HiveField(5) - bool isFavorite; + bool? isFavorite; DexPool toDexPool() { return DexPool( lpTokenInUserBalance: lpTokenInUserBalance, - isFavorite: isFavorite, + isFavorite: isFavorite ?? false, poolAddress: poolAddress, lpToken: lpToken.toModel(), pair: pair.toModel(),