Skip to content

Commit

Permalink
another fencing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hmalik88 committed Sep 1, 2023
1 parent fbf8c98 commit 41c60f8
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,6 @@ const ConfirmPageContainer = (props) => {
const insightComponent = insightObject?.insightComponent;
///: END:ONLY_INCLUDE_IN

///: BEGIN:ONLY_INCLUDE_IN(build-flask)
const warnings = insightObject?.warnings;
///: END:ONLY_INCLUDE_IN

const handleSubmit = () => {
if (isSetApproveForAll && isApprovalOrRejection) {
onSetApprovalForAll();
Expand All @@ -187,7 +183,7 @@ const ConfirmPageContainer = (props) => {
// TODO: Better name
const topLevelHandleSubmit = () => {
///: BEGIN:ONLY_INCLUDE_IN(build-flask)
if (warnings?.length > 0) {
if (insightObject?.warnings?.length > 0) {
return setIsShowingTxInsightWarnings(true);
}
///: END:ONLY_INCLUDE_IN
Expand Down Expand Up @@ -388,9 +384,9 @@ const ConfirmPageContainer = (props) => {
{
///: BEGIN:ONLY_INCLUDE_IN(build-flask)
}
{warnings?.length > 0 && isShowingTxInsightWarnings && (
{insightObject?.warnings?.length > 0 && isShowingTxInsightWarnings && (
<TxInsightWarnings
warnings={warnings}
warnings={insightObject.warnings}
origin={origin}
onCancel={() => setIsShowingTxInsightWarnings(false)}
onSubmit={() => {
Expand Down

0 comments on commit 41c60f8

Please sign in to comment.