null check on content
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
|
||||
public void SaveNote(string noteName, string? content = null)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(noteName))
|
||||
if (string.IsNullOrWhiteSpace(content))
|
||||
{
|
||||
content = "Hi! Feel free to start typing. Everything will be saved soon after you are done typing.";
|
||||
}
|
||||
|
Reference in New Issue
Block a user