mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Update instancesSlice.ts
This commit is contained in:
@ -306,6 +306,7 @@ const instancesSlice = createSlice({
|
|||||||
|
|
||||||
// Check if frequently used emojis still exist
|
// Check if frequently used emojis still exist
|
||||||
.addCase(checkEmojis.fulfilled, (state, action) => {
|
.addCase(checkEmojis.fulfilled, (state, action) => {
|
||||||
|
if (!action.payload || !action.payload.length) return
|
||||||
const activeIndex = findInstanceActive(state.instances)
|
const activeIndex = findInstanceActive(state.instances)
|
||||||
state.instances[activeIndex].frequentEmojis = state.instances[
|
state.instances[activeIndex].frequentEmojis = state.instances[
|
||||||
activeIndex
|
activeIndex
|
||||||
|
Reference in New Issue
Block a user