From 215ded8a77dde0e174fdd438c4559c26b16b3f92 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 22 Mar 2018 09:08:19 -0400 Subject: [PATCH] fixes for match detection selection --- src/App/Utilities/Helpers.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App/Utilities/Helpers.cs b/src/App/Utilities/Helpers.cs index e1c9c35e9..51a23f237 100644 --- a/src/App/Utilities/Helpers.cs +++ b/src/App/Utilities/Helpers.cs @@ -401,11 +401,11 @@ namespace Bit.App.Utilities null, options.ToArray()); UriMatchType? selectedVal = null; - if(val == AppResources.Cancel) + if(val == null || val == AppResources.Cancel) { selectedVal = exactingMatchVal; } - else if(val != null && val != AppResources.Default) + else if(val.Replace("✓ ", string.Empty) != AppResources.Default) { selectedVal = UriMatchOptionsMap.ElementAt(Array.IndexOf(optionsArr, val) - 1).Key; }