From 852819dd00169d60f8efaf73d749cef2d8f2041f Mon Sep 17 00:00:00 2001 From: saltrafael Date: Mon, 21 Jun 2021 09:54:59 -0300 Subject: [PATCH] Add back re-direct --- ui/component/claimMenuList/view.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/component/claimMenuList/view.jsx b/ui/component/claimMenuList/view.jsx index a8a67bd87..8beb906e5 100644 --- a/ui/component/claimMenuList/view.jsx +++ b/ui/component/claimMenuList/view.jsx @@ -97,7 +97,7 @@ function ClaimMenuList(props: Props) { const showDelete = claimIsMine || (fileInfo && (fileInfo.written_bytes > 0 || fileInfo.blobs_completed > 0)); const subscriptionLabel = isSubscribed ? __('Unfollow') : __('Follow'); - const { push } = useHistory(); + const { push, replace } = useHistory(); if (!claim) { return null; } @@ -166,7 +166,7 @@ function ClaimMenuList(props: Props) { if (!isRepost && !isChannel) { openModal(MODALS.CONFIRM_FILE_REMOVE, { uri }); } else { - openModal(MODALS.CONFIRM_CLAIM_REVOKE, { claim }); + openModal(MODALS.CONFIRM_CLAIM_REVOKE, { claim, cb: !isRepost && (() => replace(`/$/${PAGES.CHANNELS}`)) }); } }