We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df7e85d commit f5b13fcCopy full SHA for f5b13fc
site/src/components/GlobalSnackbar/utils.ts
@@ -27,10 +27,7 @@ export const isNotificationText = (msg: AdditionalMessage): msg is string => {
27
export const isNotificationTextPrefixed = (
28
msg: AdditionalMessage | null,
29
): msg is NotificationTextPrefixed => {
30
- if (msg) {
31
- return typeof msg !== "string" && Object.prototype.hasOwnProperty.call(msg, "prefix")
32
- }
33
- return false
+ return typeof msg !== "string" && Object.prototype.hasOwnProperty.call(msg, "prefix")
34
}
35
36
export const isNotificationList = (msg: AdditionalMessage): msg is string[] => {
0 commit comments