diff --git a/BTCPayServer/Services/Stores/StoreRepository.cs b/BTCPayServer/Services/Stores/StoreRepository.cs index f0e03a00c..f41d15a8d 100644 --- a/BTCPayServer/Services/Stores/StoreRepository.cs +++ b/BTCPayServer/Services/Stores/StoreRepository.cs @@ -309,11 +309,10 @@ namespace BTCPayServer.Services.Stores .FirstOrDefaultAsync(); if (hook is null) return; - var currentBlob = hook.GetBlob(); if (string.IsNullOrEmpty(webhookBlob.Secret)) { - webhookBlob.Secret = currentBlob.Secret; + webhookBlob.Secret = hook.GetBlob().Secret; } hook.SetBlob(webhookBlob); await ctx.SaveChangesAsync();