1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-05 23:53:33 +00:00

null coalesce

This commit is contained in:
Kyle Spearrin
2017-12-23 23:40:41 -05:00
parent ece35b96db
commit db42b6a3a5

View File

@@ -33,7 +33,7 @@ namespace Bit.iOS.Services
public void Toast(string text, bool longDuration = false)
{
if(_toast != null && !_toast.Dismissed)
if(!_toast?.Dismissed ?? false)
{
_toast.Dismiss(false);
}