From 5fca0ae1b8ef39481b1fff5b875a4c25e9094db1 Mon Sep 17 00:00:00 2001 From: dennisrijsdijk Date: Fri, 18 Oct 2024 10:13:18 +0200 Subject: [PATCH] fix: reward missing sort tags throws error (#2861) --- src/backend/effects/builtin/update-channel-reward.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/effects/builtin/update-channel-reward.ts b/src/backend/effects/builtin/update-channel-reward.ts index 1dc168e34..77c402323 100644 --- a/src/backend/effects/builtin/update-channel-reward.ts +++ b/src/backend/effects/builtin/update-channel-reward.ts @@ -295,7 +295,7 @@ const model: EffectType = { } const rewards = Object.values(channelRewardsManager.channelRewards as Record) - .filter(reward => reward.sortTags.includes(effect.sortTagId) && reward.manageable); + .filter(reward => reward.sortTags?.includes(effect.sortTagId) && reward.manageable); const promises: Promise[] = [];