From a0219f511564be6ce119b74c4c02b09ffaa23487 Mon Sep 17 00:00:00 2001 From: SkyfallWasTaken Date: Sat, 20 Jul 2024 10:07:29 +0100 Subject: [PATCH] Fix fulfillment description --- src/format.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/format.rs b/src/format.rs index ff27cfa..00e4d6a 100644 --- a/src/format.rs +++ b/src/format.rs @@ -31,8 +31,12 @@ pub fn format_item_diff(old: &ShopItem, new: &ShopItem) -> Option { if old.fulfillment_description != new.fulfillment_description { result.push(format!( "*Fulfillment info:* {} → {}", - old.description.as_ref().unwrap_or(&"_not set_".into()), - new.description.as_ref().unwrap_or(&"_not set_".into()) + old.fulfillment_description + .as_ref() + .unwrap_or(&"_not set_".into()), + new.fulfillment_description + .as_ref() + .unwrap_or(&"_not set_".into()) )); }