mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 01:48:25 +03:00
null coalesce
This commit is contained in:
parent
ece35b96db
commit
db42b6a3a5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue