Fix crash in invoice view.

Fixes #16210.
This commit is contained in:
John Preston 2021-04-27 17:34:25 +04:00
parent cfa3352caf
commit d984c5924d
1 changed files with 1 additions and 1 deletions

View File

@ -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();