fix: default name to 'Unknown'

Growth server requires non-empty string so default to 'Unknown' if name
is null or an empty string.
This commit is contained in:
Steven Nguyen
2024-09-10 11:47:55 +02:00
parent 8eb829741c
commit 60179a5ca9
+1 -1
View File
@@ -41,7 +41,7 @@
body: JSON.stringify({
subject: 'support',
email: $user.email,
firstName: $user?.name ?? '',
firstName: $user?.name || 'Unknown',
message: $supportData.message,
tags: ['cloud'],
customFields: [