Skip to content

Commit

Permalink
[TS migration] Fixed ts issues on Wallet.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben-rebelo committed Jan 17, 2024
1 parent 1321eec commit 9348564
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/KYCWall/BaseKYCWall.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function KYCWall({
* Set the source, so we can tailor the process according to how we got here.
* We do not want to set this on mount, as the source can change upon completing the flow, e.g. when upgrading the wallet to Gold.
*/
Wallet.setKYCWallSource(source ?? '', chatReportID);
Wallet.setKYCWallSource(source, chatReportID);

if (shouldShowAddPaymentMenu) {
setShouldShowAddPaymentMenu(false);
Expand Down
2 changes: 1 addition & 1 deletion src/libs/actions/Wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function setAdditionalDetailsErrorMessage(additionalErrorMessage: string) {
/**
* Save the source that triggered the KYC wall and optionally the chat report ID associated with the IOU
*/
function setKYCWallSource(source: string, chatReportID = '') {
function setKYCWallSource(source?: ValueOf<typeof CONST.KYC_WALL_SOURCE>, chatReportID = '') {
Onyx.merge(ONYXKEYS.WALLET_TERMS, {source, chatReportID});
}

Expand Down

0 comments on commit 9348564

Please sign in to comment.