fix: deposit js error
All checks were successful
/ test (push) Successful in 1m3s
/ codestyle (push) Successful in 1m25s
/ build_wheel (push) Successful in 1m24s
/ build_debian (push) Successful in 2m4s

This commit is contained in:
s3lph 2024-12-17 20:17:26 +01:00
parent b9d556ce71
commit 64f682fa11
Signed by: 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') { if (k == 'ok') {
switch (mode) { switch (mode) {
case Mode.Deposit: case Mode.Deposit:
window.location.href = '/deposit?n=' + parseInt(deposit) + append_query_string; window.location.href = '/deposit?n=' + parseInt(deposit);
break; break;
case Mode.Buy: 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; break;
case Mode.Transfer: case Mode.Transfer:
if (target_user == null) { if (target_user == null) {
return; 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; break;
} }
mode = Mode.Deposit; mode = Mode.Deposit;