Skip to content

Commit

Permalink
fix: ensure that payment amounts are always integers (#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
UncleSamtoshi authored Jun 28, 2022
1 parent 251b956 commit 92ac4de
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/hooks/user-hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,10 @@ export const useMySubscription = (): UseMyUpdates => {
}

if (paymentAmount.currency === toCurrency) {
return paymentAmount
return {
amount: Math.round(paymentAmount.amount),
currency: paymentAmount.currency,
}
}

if (
Expand Down

0 comments on commit 92ac4de

Please sign in to comment.