Fix assertion in mergeStickerPackRecord
This commit is contained in:
parent
da28b4d6cd
commit
0a299ec7e5
1 changed files with 2 additions and 2 deletions
|
@ -1493,8 +1493,8 @@ export async function mergeStickerPackRecord(
|
||||||
`newPosition=${stickerPack.position ?? '?'}`
|
`newPosition=${stickerPack.position ?? '?'}`
|
||||||
);
|
);
|
||||||
|
|
||||||
if ((!localStickerPack || !wasUninstalled) && isUninstalled) {
|
if (localStickerPack && !wasUninstalled && isUninstalled) {
|
||||||
assert(localStickerPack?.key, 'Installed sticker pack has no key');
|
assert(localStickerPack.key, 'Installed sticker pack has no key');
|
||||||
window.reduxActions.stickers.uninstallStickerPack(
|
window.reduxActions.stickers.uninstallStickerPack(
|
||||||
localStickerPack.id,
|
localStickerPack.id,
|
||||||
localStickerPack.key,
|
localStickerPack.key,
|
||||||
|
|
Loading…
Add table
Reference in a new issue