Skip to content

Commit

Permalink
removing logs
Browse files Browse the repository at this point in the history
  • Loading branch information
iago1501 committed Jan 9, 2025
1 parent eebd404 commit 13ee4e4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
}
],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
"source.fixAll.eslint": true
}
}
6 changes: 0 additions & 6 deletions react/Notices.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,10 @@ const Notices: FC = () => {

const paymentMethodsFromOrders = orders.map(getPaymentMethodsInfoFromOrder)

// eslint-disable-next-line no-console
console.log('paymentMethodsFromOrders', paymentMethodsFromOrders)

const bankInvoice = paymentMethodsFromOrders
.flat()
.find(({ paymentGroup, url }) => paymentGroup === 'bankInvoice' && !!url)

// eslint-disable-next-line no-console
console.log('bankInvoice', bankInvoice)

const listItems = [
bankInvoice == null && (
<FormattedMessage id="store/warnings.payment.approval" />
Expand Down
9 changes: 6 additions & 3 deletions react/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import get from 'lodash/get'
import flow from 'lodash/flow'
import toPairs from 'lodash/toPairs'
import filter from 'lodash/filter'
Expand Down Expand Up @@ -162,9 +163,11 @@ export function parseBankInvoiceUrl(url: string) {
}

export function getLoginUrl() {
return `${
(window as any).__RUNTIME__?.rootPath || ''
}/login?returnUrl=${encodeURIComponent(
return `${get(
window,
'__RUNTIME__.rootPath',
''
)}/login?returnUrl=${encodeURIComponent(
window.location.pathname + window.location.search
)}`
}
Expand Down

0 comments on commit 13ee4e4

Please sign in to comment.