Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Commit 016f2d4

Browse files
Solved a vital bug in the payment info tab
1 parent 00aba82 commit 016f2d4

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed
30 Bytes
Binary file not shown.

Profile/views.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,13 +478,16 @@ def get(self, request, *args):
478478
#Getting user currecny info and rate
479479
if current_user_country.country == "Pakistan":
480480
currencyInfo = "USD - PKR"
481-
currencyRate = 285
481+
currencyRate = 286
482482
elif current_user_country.country == "India":
483483
currencyInfo = "USD - INR"
484-
currencyRate = 82
484+
currencyRate = 81
485485
elif current_user_country.country == "Russia":
486486
currencyInfo = "USD - RUB"
487-
currencyRate = 80
487+
currencyRate = 83
488+
else:
489+
currencyInfo = "USD - USD"
490+
currencyRate = 1
488491

489492
serializer = PaymentInfoSerializer({"currencyInfo": currencyInfo, "currencyRate": currencyRate})
490493
return Response(serializer.data)
53 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)