Skip to content

Commit 6516a52

Browse files
committed
Fixed issue with blazor build
1 parent 22440cf commit 6516a52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Gameboy.Player.Blazor/Shared/CartridgeInfo.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353
set {
5454
if (value != cart) {
5555
this.cart = value;
56-
if (value is not null) {
57-
this.dbInfo = GameDatabase.Instance().Where(x => x.CartTitle == value.Info.title).FirstOrDefault();
56+
if (value is not null && value.Info.title is not null) {
57+
this.dbInfo = GameDatabase.Instance().FindClosest(value.Info.title);
5858
} else {
5959
this.dbInfo = null;
6060
}

0 commit comments

Comments
 (0)