fix #1888 ether amount not updated in /send suggestion on json rpc error in release apk only
This commit is contained in:
parent
cf59e6b1eb
commit
191e5bcc0b
|
@ -38,6 +38,7 @@ status.defineSubscription(
|
|||
)
|
||||
|
||||
function amountParameterBox(params, context) {
|
||||
|
||||
if (!params["bot-db"]) {
|
||||
params["bot-db"] = {};
|
||||
}
|
||||
|
@ -68,6 +69,8 @@ function amountParameterBox(params, context) {
|
|||
|
||||
var sliderValue = params["bot-db"]["sliderValue"] || 0;
|
||||
|
||||
try {
|
||||
|
||||
status.setDefaultDb({
|
||||
transaction: txData,
|
||||
calculatedFee: calculateFee(sliderValue, txData),
|
||||
|
@ -75,6 +78,16 @@ function amountParameterBox(params, context) {
|
|||
sliderValue: sliderValue
|
||||
});
|
||||
|
||||
}catch (err){
|
||||
|
||||
status.setDefaultDb({
|
||||
transaction: txData,
|
||||
calculatedFee: "0",
|
||||
feeExplanation: "",
|
||||
sliderValue: sliderValue
|
||||
});
|
||||
}
|
||||
|
||||
return {
|
||||
title: I18n.t('send_title'),
|
||||
showBack: true,
|
||||
|
@ -245,6 +258,7 @@ function amountParameterBox(params, context) {
|
|||
)]
|
||||
)
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
var paramsSend = [
|
||||
|
|
Loading…
Reference in New Issue