diff --git a/Telegram/SourceFiles/payments/ui/payments_form_summary.cpp b/Telegram/SourceFiles/payments/ui/payments_form_summary.cpp index 3dfba77822..585acc3528 100644 --- a/Telegram/SourceFiles/payments/ui/payments_form_summary.cpp +++ b/Telegram/SourceFiles/payments/ui/payments_form_summary.cpp @@ -196,7 +196,7 @@ void FormSummary::setupControls() { _1 + _2 < _3)); rpl::merge( - _submit->widthValue(), + (_submit ? _submit->widthValue() : rpl::single(0)), _cancel->widthValue() ) | rpl::skip(2) | rpl::start_with_next([=] { updateControlsGeometry();