mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
null coalesce
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user