null check on content

This commit is contained in:
Ryan Peters
2025-07-17 17:23:57 -04:00
parent ca75f88cd8
commit 50dbc53c52

View File

@@ -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.";
}