diff --git a/ts/services/storageRecordOps.ts b/ts/services/storageRecordOps.ts index b41f2952f..0fa069fcc 100644 --- a/ts/services/storageRecordOps.ts +++ b/ts/services/storageRecordOps.ts @@ -1493,8 +1493,8 @@ export async function mergeStickerPackRecord( `newPosition=${stickerPack.position ?? '?'}` ); - if ((!localStickerPack || !wasUninstalled) && isUninstalled) { - assert(localStickerPack?.key, 'Installed sticker pack has no key'); + if (localStickerPack && !wasUninstalled && isUninstalled) { + assert(localStickerPack.key, 'Installed sticker pack has no key'); window.reduxActions.stickers.uninstallStickerPack( localStickerPack.id, localStickerPack.key,