Fix missing view name

This commit is contained in:
Dennis Reimann 2021-02-23 16:51:11 +01:00
parent 2fd8c831c0
commit a6fe61d508
No known key found for this signature in database
GPG key ID: 5009E1797F03F8D0

View file

@ -238,7 +238,7 @@ namespace BTCPayServer.Controllers
public async Task<IActionResult> NewWebhook(string storeId, EditWebhookViewModel viewModel)
{
if (!ModelState.IsValid)
return View(viewModel);
return View(nameof(ModifyWebhook), viewModel);
var webhookId = await _Repo.CreateWebhook(CurrentStore.Id, viewModel.CreateBlob());
TempData[WellKnownTempData.SuccessMessage] = "The webhook has been created";