Publishing to Hypothesis displays the incorrect alert
Issue description; the Hypothesis alert indicating that fields have been published incorrectly displays a successful result when the 'Include when sharing or publishing?' field is set to Ad-hoc
despite the submission.link
field having no value (i.e. not populated with a biorxiv link). The alert should be; 'Error posting to Hypothesis'
Publishing to Hypothesis displays the correct alert when the 'Include when sharing or publishing?' field is set to Always
. So the bug appears to only impact the 'selective publishing' setting.
Here's an example; https://kotahidev.cloud68.co/kotahi/versions/6fe68d8f-c80a-4279-8ff5-a1e5cc745c85/decision