Skip to content

Commit

Permalink
fix: fixed formatting inside ScLoan.js
Browse files Browse the repository at this point in the history
  • Loading branch information
aaditya-smallcase committed Aug 22, 2024
1 parent ec8d6ad commit 85fa7e8
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions src/ScLoan.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,11 @@ const { SmallcaseGateway: SmallcaseGatewayNative } = NativeModules;
* @throws {ScLoanError}
*/
const setup = async (config) => {
const safeConfig = safeObject(config);
if (safeConfig.environment === undefined || safeConfig.environment === null)
safeConfig.environment = ENV.PROD;
const safeConfig = safeObject(config);
if(safeConfig.environment === undefined || safeConfig.environment === null) safeConfig.environment = ENV.PROD

return SmallcaseGatewayNative.setupLoans(safeConfig);
};
return SmallcaseGatewayNative.setupLoans(safeConfig);
};

/**
* Triggers the LOS Journey
Expand All @@ -46,10 +45,10 @@ const setup = async (config) => {
* @throws {ScLoanError}
*/
const apply = async (loanInfo) => {
const safeLoanInfo = safeObject(loanInfo);
const safeLoanInfo = safeObject(loanInfo);

return SmallcaseGatewayNative.apply(safeLoanInfo);
};
return SmallcaseGatewayNative.apply(safeLoanInfo);
};

/**
* Triggers the Repayment Journey
Expand All @@ -59,10 +58,10 @@ const apply = async (loanInfo) => {
* @throws {ScLoanError}
*/
const pay = async (loanInfo) => {
const safeLoanInfo = safeObject(loanInfo);
const safeLoanInfo = safeObject(loanInfo);

return SmallcaseGatewayNative.pay(safeLoanInfo);
};
return SmallcaseGatewayNative.pay(safeLoanInfo);
};

/**
* Triggers the Withdraw Journey
Expand All @@ -72,10 +71,10 @@ const pay = async (loanInfo) => {
* @throws {ScLoanError}
*/
const withdraw = async (loanInfo) => {
const safeLoanInfo = safeObject(loanInfo);
const safeLoanInfo = safeObject(loanInfo);

return SmallcaseGatewayNative.withdraw(safeLoanInfo);
};
return SmallcaseGatewayNative.withdraw(safeLoanInfo);
};

/**
* Triggers the Servicing Journey
Expand All @@ -85,10 +84,10 @@ const withdraw = async (loanInfo) => {
* @throws {ScLoanError}
*/
const service = async (loanInfo) => {
const safeLoanInfo = safeObject(loanInfo);
const safeLoanInfo = safeObject(loanInfo);

return SmallcaseGatewayNative.service(safeLoanInfo);
};
return SmallcaseGatewayNative.service(safeLoanInfo);
};

/**
* Triggers the triggerInteraction function
Expand All @@ -112,4 +111,4 @@ const ScLoan = {
triggerInteraction,
};

export default ScLoan;
export default ScLoan;

0 comments on commit 85fa7e8

Please sign in to comment.