From e3141250b6579992312972e632d76a3b927100a5 Mon Sep 17 00:00:00 2001 From: "a.bouhuolia" Date: Sun, 9 Jan 2022 13:07:32 +0200 Subject: [PATCH] fix: `BIG-261` Hide convert to invoice button on the context menu if already converted. --- .../Sales/Estimates/EstimatesLanding/components.js | 12 +++++++----- src/hooks/query/invoices.js | 8 ++++++++ 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/containers/Sales/Estimates/EstimatesLanding/components.js b/src/containers/Sales/Estimates/EstimatesLanding/components.js index 65b941d71..dc58b244c 100644 --- a/src/containers/Sales/Estimates/EstimatesLanding/components.js +++ b/src/containers/Sales/Estimates/EstimatesLanding/components.js @@ -83,11 +83,13 @@ export function ActionsMenu({ text={intl.get('edit_estimate')} onClick={safeCallback(onEdit, original)} /> - } - text={intl.get('convert_to_invoice')} - onClick={safeCallback(onConvert, original)} - /> + + } + text={intl.get('convert_to_invoice')} + onClick={safeCallback(onConvert, original)} + /> +