Skip to content

Commit 4978e68

Browse files
author
Chris Schuhmacher
committed
Revert "cake-6064 | use coalescing operator for metadata"
This reverts commit 8f4e17b.
1 parent 8f4e17b commit 4978e68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/models/wds-on-site-notifications/wds-on-site-notification.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ export default EmberObject.extend({
8989
},
9090

9191
getMetadata(notification) {
92-
let metadata = notification.metadata ?? null;
93-
92+
let metadata =
93+
typeof notification.metadata === 'undefined' || notification.metadata === null ? null : notification.metadata;
9494
if (typeof metadata === 'string') {
9595
try {
9696
metadata = JSON.parse(metadata);

0 commit comments

Comments
 (0)