fix: add a workaround type check for tipUsers to ensure it's an array (#1531)
This commit is contained in:
@@ -54,7 +54,13 @@ class FeedActions {
|
||||
if (targetFeed?.owner) {
|
||||
feed.owner = { ...targetFeed.owner }
|
||||
}
|
||||
if (targetFeed && "tipUsers" in targetFeed && targetFeed.tipUsers) {
|
||||
if (
|
||||
targetFeed &&
|
||||
"tipUsers" in targetFeed &&
|
||||
targetFeed.tipUsers &&
|
||||
// Workaround for type issue
|
||||
Array.isArray(targetFeed.tipUsers)
|
||||
) {
|
||||
feed.tipUsers = [...targetFeed.tipUsers]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user