ReactionPickerLimited: Fix unexpected array mutation
This commit is contained in:
parent
9c81341541
commit
e494152ea0
@ -98,7 +98,7 @@ const ReactionPickerLimited: FC<OwnProps & StateProps> = ({
|
||||
return sortReactions(reactionsToSort, topReactions);
|
||||
}
|
||||
|
||||
const reactionsToSort: ApiReactionWithPaid[] = enabledReactions.allowed;
|
||||
const reactionsToSort: ApiReactionWithPaid[] = enabledReactions.allowed.slice();
|
||||
if (isWithPaidReaction) {
|
||||
reactionsToSort.unshift({ type: 'paid' });
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user