1
0
Fork 0
forked from s3lph/matemat

fix: deposit js error

This commit is contained in:
s3lph 2024-12-17 20:17:26 +01:00
parent b9d556ce71
commit 64f682fa11
Signed by untrusted user: s3lph
GPG key ID: 0AA29A52FB33CFB5
2 changed files with 4 additions and 4 deletions

View file

@ -1,2 +1,2 @@
__version__ = '0.4.8'
__version__ = '0.4.9'

View file

@ -81,16 +81,16 @@ deposit_key = (k) => {
if (k == 'ok') {
switch (mode) {
case Mode.Deposit:
window.location.href = '/deposit?n=' + parseInt(deposit) + append_query_string;
window.location.href = '/deposit?n=' + parseInt(deposit);
break;
case Mode.Buy:
window.location.href = '/buy?pid=' + product_id + '&price=' + parseInt(deposit) + append_query_string;
window.location.href = '/buy?pid=' + product_id + '&price=' + parseInt(deposit);
break;
case Mode.Transfer:
if (target_user == null) {
return;
}
window.location.href = '/transfer?target=' + target_user + '&n=' + parseInt(deposit) + append_query_string;
window.location.href = '/transfer?target=' + target_user + '&n=' + parseInt(deposit);
break;
}
mode = Mode.Deposit;