diff --git a/src/api/user.js b/src/api/user.js index 70929b162..9a55a6b93 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -266,7 +266,7 @@ export const editStatus = ({ contentType, }) => { const form = new FormData() - const pollOptions = poll.options || [] + const pollOptions = poll?.options || [] form.append('status', status) if (spoilerText) form.append('spoiler_text', spoilerText)