Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinwy committed Jul 3, 2024
1 parent 435efe7 commit fbd1441
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# Ignore everything in the src directory
src/**
node_modules/

# Re-include directories under src/app/code/Komoju/Payments and subdirectories
!src/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ public function execute()
$this->logger->info($message);
}


$result = $this->_resultFactory->create(ResultFactory::TYPE_JSON);
$result->setHttpResponseCode(200);
$result->setData('');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(
CheckoutSession $checkoutSession,
KomojuApi $komojuApi,
Config $config,
Cart $cart,
Cart $cart
) {
$this->jsonResultFactory = $jsonResultFactory;
$this->quoteRepository = $quoteRepository;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ define(
},

loadKomojuData: function () {
const self = this;
var self = this;
self.isDataLoaded(false);

$.get(url.build('komoju/komojufield/komojusessiondata'))
Expand All @@ -52,7 +52,7 @@ define(
},

submitPayment: function () {
const komojuField = document.querySelector(`komoju-fields[payment-type='${this.komojuMethod()}']`);
var komojuField = document.querySelector(`komoju-fields[payment-type='${this.komojuMethod()}']`);

if (komojuField) {
return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -114,7 +114,7 @@ define(

fullScreenLoader.startLoader();

const boundSuper = this._super.bind(this);
var boundSuper = this._super.bind(this);

if (this.komojuFieldEnabledMethods.includes(this.komojuMethod())) {
this.submitPayment().then(token => {
Expand All @@ -133,16 +133,16 @@ define(

sendToken: function (token) {
if (!token) {
const redirectUrl = this.redirectUrl() + "?payment_method=" + this.komojuMethod();
var redirectUrl = this.redirectUrl() + "?payment_method=" + this.komojuMethod();
$.mage.redirect(
redirectUrl
);
return;
}

const serviceUrl = url.build('komoju/komojufield/processToken');
var serviceUrl = url.build('komoju/komojufield/processToken');

const data = {
var data = {
'id': this.komojuSession().id,
'token': token
}
Expand Down

0 comments on commit fbd1441

Please sign in to comment.