-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/planet cash topup #307
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My quick functional UI test succeeded. I assume for this MR basic donation tests should be done to be sure no other donation processes are broken by this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Shreyaschorge Functionally this works properly. I have added some comments for some of the code, please take a look.
@@ -13,11 +13,11 @@ import { setCountryCode } from "src/Utils/setCountryCode"; | |||
import { DONATE } from "src/Utils/donationStepConstants"; | |||
|
|||
interface Props { | |||
projectDetails: Object; | |||
projectDetails?: Object; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codefactor reports an issue here due to using type Object
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I am aware of that.
This will be fixed in #309
donationStep: any; | ||
giftDetails: Object; | ||
isGift: boolean; | ||
resolvedUrl: any; | ||
resolvedUrl?: any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codefactor reports an issue here due to using type any
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be fixed in #309
@@ -28,7 +28,7 @@ interface Props { | |||
allowTaxDeductionChange: boolean; | |||
currency: any; | |||
paymentSetup: any; | |||
treecount: any; | |||
treecount?: any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codefactor reports an issue here due to using type any
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be fixed in #309
const _currentPlanetCashAccount = planetCashAccounts.find((account) => { | ||
return account.country === _country; | ||
}); | ||
if (_currentPlanetCashAccount) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Shreyaschorge Isn't this redundant?
The useEffect
above also calls setCurrentPlanetCashAccount
and is dependent on country
and planetCashAccounts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed here 68c8c0e
I tested the functionality, works as I expected. |
Changes in this pull request:
to=planetCash
in the route, thus providing user with the url likehttp://paydev.pp.eco?to=planetCash&step=donate