diff --git a/pages/Receive.qml b/pages/Receive.qml index 61403936..047a57c7 100644 --- a/pages/Receive.qml +++ b/pages/Receive.qml @@ -453,7 +453,7 @@ Rectangle { fontBold: true inlineIcon: true onTextChanged: { - if (amountToReceiveLine.text.startsWith('.')) { + if(amountToReceiveLine.text.indexOf('.') === 0){ amountToReceiveLine.text = '0' + amountToReceiveLine.text; } } diff --git a/pages/Transfer.qml b/pages/Transfer.qml index 3207e432..f766bc72 100644 --- a/pages/Transfer.qml +++ b/pages/Transfer.qml @@ -145,7 +145,7 @@ Rectangle { inlineButtonText: qsTr("All") + translationManager.emptyString inlineButton.onClicked: amountLine.text = "(all)" onTextChanged: { - if (amountLine.text.startsWith('.')) { + if(amountLine.text.indexOf('.') === 0){ amountLine.text = '0' + amountLine.text; } }