diff --git a/src/utils/open-compose.js b/src/utils/open-compose.js index 68ed28c2..da677112 100644 --- a/src/utils/open-compose.js +++ b/src/utils/open-compose.js @@ -5,7 +5,7 @@ export default function openCompose(opts) { const top = Math.max(0, (screenHeight - 450) / 2); const width = Math.min(screenWidth, 600); const height = Math.min(screenHeight, 450); - const winUID = opts.uid || Math.random(); + const winUID = opts?.uid || Math.random(); const newWin = window.open( url, 'compose' + winUID,