Skip to content

Commit

Permalink
Fix icons not rendering if only one share exists
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksei-nmc committed Oct 19, 2023
1 parent 4be4181 commit ab6d7cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/shareicons.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const generateText = (recipients) => {
*/
const generateShareList = (action, recipients, shareTypes) => {
action.empty()
shareTypes.split(',').forEach(shareType => {
String(shareTypes).split(',').forEach(shareType => {
const iconEl = document.createElement('span')
iconEl.className = 'icon'
if (parseInt(shareType) === ShareTypes.SHARE_TYPE_LINK) {
Expand Down

0 comments on commit ab6d7cb

Please sign in to comment.