From 1387c5be40ccce29e309ed48acf5bed2d20befab Mon Sep 17 00:00:00 2001
From: Thomas Zarebczan
Date: Mon, 6 Apr 2020 13:37:54 -0400
Subject: [PATCH] fix: double confirmation on channel updates
Fixes https://github.com/lbryio/lbry-desktop/issues/3956
---
ui/constants/transaction_types.js | 1 +
ui/modal/modalRevokeClaim/view.jsx | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/ui/constants/transaction_types.js b/ui/constants/transaction_types.js
index 5043473d6..d5463ae50 100644
--- a/ui/constants/transaction_types.js
+++ b/ui/constants/transaction_types.js
@@ -1,3 +1,4 @@
export const TIP = 'tip';
export const SUPPORT = 'support';
export const CHANNEL = 'channel';
+export const UPDATE = 'update';
diff --git a/ui/modal/modalRevokeClaim/view.jsx b/ui/modal/modalRevokeClaim/view.jsx
index 190094491..15aeab54f 100644
--- a/ui/modal/modalRevokeClaim/view.jsx
+++ b/ui/modal/modalRevokeClaim/view.jsx
@@ -49,7 +49,7 @@ export default function ModalRevokeClaim(props: Props) {
);
- } else if (type === txnTypes.CHANNEL) {
+ } else if (type === txnTypes.CHANNEL || (type === txnTypes.UPDATE && name.startsWith('@'))) {
return (